diff options
author | nienzu <ibqqz0602@gmail.com> | 2020-10-13 07:06:54 +0300 |
---|---|---|
committer | nienzu <ibqqz0602@gmail.com> | 2020-10-20 06:43:33 +0300 |
commit | bdb40a2d113120515e96421d474b8106dbfbf964 (patch) | |
tree | ca5104f7e9f2a2cd7c2bdff498d0f9a747d64897 /templates | |
parent | ab61503ef34caa44316905834f3c2f811518c4a0 (diff) |
Make mail confirmation optional
Signed-off-by: nienzu <ibqqz0602@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin.php | 8 | ||||
-rw-r--r-- | templates/form/email.php | 7 |
2 files changed, 14 insertions, 1 deletions
diff --git a/templates/admin.php b/templates/admin.php index 0bb6efe..a04270d 100644 --- a/templates/admin.php +++ b/templates/admin.php @@ -22,6 +22,14 @@ foreach ($_['groups'] as $group) { </label> </p> + <h3><?php p($l->t('Disable Email Verification')); ?></h3> + <p> + <input type="checkbox" id="disable_email_verification" class="checkbox" name="disable_email_verification" <?php if ($_['disable_email_verification'] === 'yes') { + echo ' checked'; +} ?>> + <label for="disable_email_verification"><?php p($l->t('Let user can register directly without email verification')); ?></label> + </p> + <h3><?php p($l->t('Allowed email domains')); ?></h3> <p> <label> diff --git a/templates/form/email.php b/templates/form/email.php index e68727e..d99ce83 100644 --- a/templates/form/email.php +++ b/templates/form/email.php @@ -17,7 +17,12 @@ style('registration', 'style'); <img id="email-icon" class="svg" src="<?php print_unescaped(image_path('', 'actions/mail.svg')); ?>" alt=""/> </p> <input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']); ?>" /> - <input type="submit" id="submit" value="<?php p($l->t('Request verification link')); ?>" /> + <input type="submit" id="submit" value="<?php + if ($_['disable_email_verification'] === 'yes') { + echo p($l->t('Start register process')); + } else { + echo p($l->t('Request verification link')); + }?>" /> <a id="lost-password-back" href="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('core.login.showLoginForm')) ?>"> <?php p($l->t('Back to login')); ?> |