Add the possibility to unlock users from the user interface

This commit is contained in:
Frederic Guillot
2016-08-26 21:27:30 -04:00
parent 793eb1074f
commit a24840a533
5 changed files with 33 additions and 1 deletions

View File

@@ -18,6 +18,11 @@
<li><?= t('Number of failed login:') ?> <strong><?= $user['nb_failed_login'] ?></strong></li>
<?php if ($user['lock_expiration_date'] != 0): ?>
<li><?= t('Account locked until:') ?> <strong><?= $this->dt->datetime($user['lock_expiration_date']) ?></strong></li>
<?php if ($this->user->isAdmin()): ?>
<li>
<?= $this->url->link(t('Unlock this user'), 'UserCredentialController', 'unlock', array('user_id' => $user['id']), true) ?>
</li>
<?php endif ?>
<?php endif ?>
</ul>