diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-08-26 21:27:30 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-08-26 21:27:30 -0400 |
commit | a24840a5332d717d2afa8516d1df0b4e4b958dd1 (patch) | |
tree | 2350ee0a92fd7a6fccb8fdc76b1a3e34581c75c1 /app/Template/user_view/show.php | |
parent | 793eb1074f6df9f5dfa5ffece0219228a2cddfad (diff) |
Add the possibility to unlock users from the user interface
Diffstat (limited to 'app/Template/user_view/show.php')
-rw-r--r-- | app/Template/user_view/show.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Template/user_view/show.php b/app/Template/user_view/show.php index fc11f8a1..2f5a73af 100644 --- a/app/Template/user_view/show.php +++ b/app/Template/user_view/show.php @@ -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> |