Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/registration.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-08-28 21:30:01 +0300
committerJoas Schilling <coding@schilljs.com>2020-08-28 21:39:37 +0300
commit9bdf377aecc7ea1e11d60451e9d2c5a4a89157eb (patch)
tree5fddc758f8b935bf0f9e3344108602f4f3c4caa9 /templates
parent2438813f1711fe69762d69c0774f74fae9c07049 (diff)
Add settings for blocklist and showing the domain list
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/admin.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/templates/admin.php b/templates/admin.php
index c3704b1..0bb6efe 100644
--- a/templates/admin.php
+++ b/templates/admin.php
@@ -28,7 +28,21 @@ 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>
+ <em><?php p($l->t('Enter a semicolon-separated list of allowed email domains, * for wildcard. Example: %s', ['nextcloud.com;*.example.com']));?></em>
+
+ <p>
+ <input type="checkbox" id="domains_is_blocklist" class="checkbox" name="domains_is_blocklist" <?php if ($_['domains_is_blocklist'] === 'yes') {
+ echo ' checked';
+} ?>>
+ <label for="domains_is_blocklist"><?php p($l->t('Block listed email domains instead of allowing them')); ?></label>
+ </p>
+
+ <p>
+ <input type="checkbox" id="show_domains" class="checkbox" name="show_domains" <?php if ($_['show_domains'] === 'yes') {
+ echo ' checked';
+} ?>>
+ <label for="show_domains"><?php p($l->t('Show the allowed/blocked email domains to users')); ?></label>
+ </p>
<p>
<input type="checkbox" id="email_is_login" class="checkbox" name="email_is_login" <?php if ($_['email_is_login'] === 'yes') {