summaryrefslogtreecommitdiff
path: root/app/Template/user/password_reset.php
blob: b4c9a0c4ad68801fd04d277c0156de5682afc29a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<div class="page-header">
    <h2><?= t('Last Password Reset') ?></h2>
</div>

<?php if (empty($tokens)): ?>
    <p class="alert"><?= t('The password has never been reinitialized.') ?></p>
<?php else: ?>
    <table class="table-small table-fixed">
    <tr>
        <th class="column-20"><?= t('Creation') ?></th>
        <th class="column-20"><?= t('Expiration') ?></th>
        <th class="column-5"><?= t('Active') ?></th>
        <th class="column-15"><?= t('IP address') ?></th>
        <th><?= t('User agent') ?></th>
    </tr>
    <?php foreach ($tokens as $token): ?>
    <tr>
        <td><?= dt('%B %e, %Y at %k:%M %p', $token['date_creation']) ?></td>
        <td><?= dt('%B %e, %Y at %k:%M %p', $token['date_expiration']) ?></td>
        <td><?= $token['is_active'] == 0 ? t('No') : t('Yes') ?></td>
        <td><?= $this->e($token['ip']) ?></td>
        <td><?= $this->e($token['user_agent']) ?></td>
    </tr>
    <?php endforeach ?>
    </table>
<?php endif ?>