summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorMax Wu2017-01-12 23:37:28 +0800
committerGitHub2017-01-12 23:37:28 +0800
commit48510984775a8b9caac295448840e56f65f164dd (patch)
treecd6df969c198d4e99293bb18ebf77ab8528633a8 /public
parent8b378d7847b82f34ceedfdfbf27d5fe324ab1944 (diff)
parent747629e549fb5c32e1acf18e24bfc6a7e1cd5b0c (diff)
Merge pull request #317 from SISheogorath/master+allowEmailRegister
Add `allowemailregister` option
Diffstat (limited to '')
-rw-r--r--public/views/signin-modal.ejs2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/views/signin-modal.ejs b/public/views/signin-modal.ejs
index e9c54b33..a8af62e7 100644
--- a/public/views/signin-modal.ejs
+++ b/public/views/signin-modal.ejs
@@ -84,7 +84,7 @@
<div class="form-group">
<div class="col-sm-12">
<button type="submit" class="btn btn-primary" formaction="<%- url %>/login">Sign in</button>
- <button type="submit" class="btn btn-default" formaction="<%- url %>/register">Register</button>
+ <% if(allowemailregister) { %><button type="submit" class="btn btn-default" formaction="<%- url %>/register">Register</button><% }%>
</div>
</div>
</form>