diff options
author | Joas Schilling <coding@schilljs.com> | 2020-08-28 19:15:21 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-08-28 21:39:37 +0300 |
commit | a9246921f04f989924de5ac31b5d7a7bf0d91d63 (patch) | |
tree | 40c24f59eeb847242f9e64d4425640b78b46b926 /templates | |
parent | 69197003a25e5c55885bd0d55e1f6ba114a52aad (diff) |
Add admin UI option for "Force email as user id"
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/templates/admin.php b/templates/admin.php index 3eecc2c..c0bffaf 100644 --- a/templates/admin.php +++ b/templates/admin.php @@ -28,14 +28,19 @@ foreach ($_['groups'] as $group) { <input type="text" id="allowed_domains" name="allowed_domains" value="<?php p($_['allowed']);?>" placeholder="nextcloud.com;*.example.com"> </label> </p> + <em><?php p($l->t('Enter a semicolon-separated list of allowed domains, * for wildcard. Example: %s', ['nextcloud.com;*.example.com']));?></em> + <p> - <em><?php p($l->t('Enter a semicolon-separated list of allowed domains, * for wildcard. Example: %s', ['nextcloud.com;*.example.com']));?></em> + <input type="checkbox" id="email_is_login" class="checkbox" name="email_is_login" <?php if ($_['email_is_login'] === 'yes') { + echo ' checked'; + } ?>> + <label for="email_is_login"><?php p($l->t('Force email as login name')); ?></label> </p> <h3><?php p($l->t('Admin approval')); ?></h3> <p> - <input type="checkbox" id="admin_approval_required" class="checkbox" name="admin_approval_required" <?php if ($_['approval_required'] === "yes") { - echo " checked"; + <input type="checkbox" id="admin_approval_required" class="checkbox" name="admin_approval_required" <?php if ($_['approval_required'] === 'yes') { + echo ' checked'; } ?>> <label for="admin_approval_required"><?php p($l->t('Require admin approval')); ?></label> </p> |