diff options
author | Christoph (Sheogorath) Kern | 2018-10-06 15:48:01 +0200 |
---|---|---|
committer | GitHub | 2018-10-06 15:48:01 +0200 |
commit | 02d64cd56ad4e1f0767e2c1293341217f6bd5d97 (patch) | |
tree | 528fd1c47b3847955b97a39a22f7cc9eaa4376c6 /public | |
parent | 32af96aa376576d060e16a2c0ff7ed5719d24e91 (diff) | |
parent | 9f9c4089be2112bfd8a55dd2cb996c811afab898 (diff) |
Merge pull request #942 from SISheogorath/feature/openID
Add OpenID to CodiMD
Diffstat (limited to '')
-rw-r--r-- | public/views/shared/signin-modal.ejs | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/public/views/shared/signin-modal.ejs b/public/views/shared/signin-modal.ejs index f0cffad9..b413511c 100644 --- a/public/views/shared/signin-modal.ejs +++ b/public/views/shared/signin-modal.ejs @@ -78,7 +78,26 @@ </div> </form> <% } %> - <% if((facebook || twitter || github || gitlab || mattermost || dropbox || google || ldap || oauth2) && email) { %> + <% if((facebook || twitter || github || gitlab || mattermost || dropbox || google || ldap || oauth2) && openID) { %> + <hr> + <% }%> + <% if(openID) { %> + <h4>OpenID</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="text" class="form-control" name="openid_identifier" placeholder="OpenID" 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/openid">Sign in</button> + </div> + </div> + </form> + <% } %> + <% if((facebook || twitter || github || gitlab || mattermost || dropbox || google || ldap || oauth2 || openID) && email) { %> <hr> <% }%> <% if(email) { %> |