From 00b9508d8178bae016b2a25a81282dbe9ae0a9d2 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 7 Feb 2015 23:28:17 -0500 Subject: Be able to disable the login form for specific users --- app/Template/user/edit.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'app/Template/user/edit.php') diff --git a/app/Template/user/edit.php b/app/Template/user/edit.php index 310a1ed0..bd1c4889 100644 --- a/app/Template/user/edit.php +++ b/app/Template/user/edit.php @@ -26,9 +26,13 @@ formLabel(t('Language'), 'language') ?> formSelect('language', $languages, $values, $errors) ?>
- userSession->isAdmin()): ?> - formCheckbox('is_admin', t('Administrator'), 1, isset($values['is_admin']) && $values['is_admin'] == 1 ? true : false) ?>
- +
+ formCheckbox('disable_login_form', t('Disable login form'), 1, isset($values['disable_login_form']) && $values['disable_login_form'] == 1) ?>
+ + userSession->isAdmin()): ?> + formCheckbox('is_admin', t('Administrator'), 1, isset($values['is_admin']) && $values['is_admin'] == 1) ?>
+ +
-- cgit v1.2.3