diff options
author | Joas Schilling <coding@schilljs.com> | 2021-03-31 15:01:39 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-03-31 15:01:39 +0300 |
commit | 58712c82d087ea5cd8bca96fb31ce6b0e512a16e (patch) | |
tree | a89d7bebb146100a39d989f67e15ba521188dd71 /templates/admin.php | |
parent | 8c0ffecb7b23fa0ae6387ed69a483448517d7871 (diff) |
Hide login name policy when email is used
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'templates/admin.php')
-rw-r--r-- | templates/admin.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/admin.php b/templates/admin.php index 0679cc1..e68186f 100644 --- a/templates/admin.php +++ b/templates/admin.php @@ -59,13 +59,15 @@ foreach ($_['groups'] as $group) { <label for="email_is_login"><?php p($l->t('Force email as login name')); ?></label> </p> - <h3><?php p($l->t('Username policy')); ?></h3> + <div class="login-name-policy <?php if ($_['email_is_login'] === 'yes') { p('hidden'); } ?>"> + <h3><?php p($l->t('Login name policy')); ?></h3> <p> <label> <input type="text" id="username_policy_regex" name="username_policy_regex" value="<?php p($_['username_policy_regex']);?>" placeholder="E.g.: /^[a-z-]+\.[a-z-]+$/"> </label> </p> - <em><?php p($l->t('If configured, usernames will be validated through the regular expression. If the validation fails the user is prompted with a generic error. Make sure your regex is working correctly.'));?></em> + <em><?php p($l->t('If configured, login names will be validated through the regular expression. If the validation fails the user is prompted with a generic error. Make sure your regex is working correctly.'));?></em> + </div> <h3><?php p($l->t('User instructions')); ?></h3> <em><?php p($l->t('Caution: The user instructions will not be translated and will therefore be displayed as configured below for all users regardless of their actual language.'));?></em> |