diff options
| author | Alon Levy <alon@pobox.com> | 2015-04-27 16:55:25 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-04-27 16:55:25 +0300 |
| commit | 49e1665233945b9e9e8b3a621bbbe73646a61bf3 (patch) | |
| tree | 5a08775881685a2dc75b9557eeddd92742603556 /res | |
| parent | 81aa2aa1da3342133ef2b7a67053cea5bc93402c (diff) | |
server: allow disabling signup (default to enabled)
Diffstat (limited to 'res')
| -rw-r--r-- | res/etc/rhizi-server.conf.example | 1 | ||||
| -rw-r--r-- | res/templates/login.html | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/res/etc/rhizi-server.conf.example b/res/etc/rhizi-server.conf.example index a5358dc1..e1ea2d22 100644 --- a/res/etc/rhizi-server.conf.example +++ b/res/etc/rhizi-server.conf.example @@ -55,6 +55,7 @@ feedback_recipient = feedback@localhost access_control = True user_db_path = ./deploy-local/etc/user_db.db acl__singup__email_domain = +signup_enabled = True # ----------------------------------------------------------------------------- # Client settings diff --git a/res/templates/login.html b/res/templates/login.html index 14b6b759..b4d7f978 100644 --- a/res/templates/login.html +++ b/res/templates/login.html @@ -41,12 +41,14 @@ body { <div id="login-view_failed-login" style="display: none">Login Failed</div> <div class="login-text" id="login-page_forgot-password-button" title="Forgot your password"><a href="/pw-reset">Forgot your password?</a></div> </div> + {% if signup_enabled %} <div id="create-account-section" class="login-view-section login-form"> <div class="section-divider">or</div> <a href="/signup"> <div class="login-form_button" id="login-page_create-account-button" title="Create Account">Create Account</div> </a> </div> + {% endif %} <div class="login-view-section"> <div class="section-divider magenta-divider"><span class="contact-us-icon"></span></div> <p class="login-text contact-us-text"><a class="contact-us-link" href="mailto:feedback_CRI@rhizi.net?subject=Rhizi%20User%20Feedback">Email us</a> with your feedback,<br>we would love to hear your suggestions!</p> |
