diff options
author | Max Wu | 2017-01-09 00:49:40 +0800 |
---|---|---|
committer | GitHub | 2017-01-09 00:49:40 +0800 |
commit | b13635aac9d42996d0ac9b9b7dcbdf94102c7abe (patch) | |
tree | 966bdbdd4a359311eae02a86144df8a4307aafb2 /public/views/signin-modal.ejs | |
parent | 23a12dd927b66880fa991b377d450455851b69a9 (diff) | |
parent | 94abfaba7c5b7655eda3d6547144adfa26c90a5f (diff) |
Merge pull request #279 from alecdwm/ldap-auth
Support for LDAP server authentication
Diffstat (limited to 'public/views/signin-modal.ejs')
-rw-r--r-- | public/views/signin-modal.ejs | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/public/views/signin-modal.ejs b/public/views/signin-modal.ejs index 58d8a690..7c52e0f3 100644 --- a/public/views/signin-modal.ejs +++ b/public/views/signin-modal.ejs @@ -38,7 +38,32 @@ <i class="fa fa-google"></i> <%= __('Sign in via %s', 'Google') %> </a> <% } %> - <% if((facebook || twitter || github || gitlab || dropbox || google) && email) { %> + <% if((facebook || twitter || github || gitlab || dropbox || google) && ldap) { %> + <hr> + <% }%> + <% if(ldap) { %> + <h4>Via LDAP</h4> + <form data-toggle="validator" role="form" class="form-horizontal" method="post" enctype="application/x-www-form-urlencoded"> + <div class="form-group"> + <div class="col-sm-12"> + <input type="username" class="form-control" name="username" placeholder="Username" required> + <span class="help-block control-label with-errors" style="display: inline;"></span> + </div> + </div> + <div class="form-group"> + <div class="col-sm-12"> + <input type="password" class="form-control" name="password" placeholder="Password" required> + <span class="help-block control-label with_errors" style="display: inline;"></span> + </div> + </div> + <div class="form-group"> + <div class="col-sm-12"> + <button type="submit" class="btn btn-primary" formaction="<%- url %>/auth/ldap">Sign in</button> + </div> + </div> + </form> + <% } %> + <% if((facebook || twitter || github || gitlab || dropbox || google || ldap) && email) { %> <hr> <% }%> <% if(email) { %> @@ -67,4 +92,4 @@ </div> </div> </div> -</div>
\ No newline at end of file +</div> |