From 40b385570291278f44806446f702ee61e1382805 Mon Sep 17 00:00:00 2001 From: Pedro Ferreira Date: Tue, 27 Jun 2017 19:08:05 +0200 Subject: Add support for generic OAuth2 providers Signed-off-by: Pedro Ferreira --- public/views/index/body.ejs | 4 ++-- public/views/shared/signin-modal.ejs | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'public/views') diff --git a/public/views/index/body.ejs b/public/views/index/body.ejs index d8766fec..bf7988b7 100644 --- a/public/views/index/body.ejs +++ b/public/views/index/body.ejs @@ -15,7 +15,7 @@ <% if(allowAnonymous) { %> <%= __('New guest note') %> <% } %> - <% if(facebook || twitter || github || gitlab || mattermost || dropbox || google || ldap || saml || email) { %> + <% if(facebook || twitter || github || gitlab || mattermost || dropbox || google || ldap || saml || oauth2 || email) { %> <% } %> @@ -49,7 +49,7 @@ <% if (errorMessage && errorMessage.length > 0) { %>
<%= errorMessage %>
<% } %> - <% if(facebook || twitter || github || gitlab || mattermost || dropbox || google || ldap || saml || email) { %> + <% if(facebook || twitter || github || gitlab || mattermost || dropbox || google || ldap || saml || oauth2 || email) { %>
diff --git a/public/views/shared/signin-modal.ejs b/public/views/shared/signin-modal.ejs index 82b5cf1f..f0cffad9 100644 --- a/public/views/shared/signin-modal.ejs +++ b/public/views/shared/signin-modal.ejs @@ -48,7 +48,12 @@ <%= __('Sign in via %s', 'SAML') %> <% } %> - <% if((facebook || twitter || github || gitlab || mattermost || dropbox || google || saml) && ldap) { %> + <% if(oauth2) { %> + + <%= __('Sign in via %s', oauth2ProviderName || 'OAuth2') %> + + <% } %> + <% if((facebook || twitter || github || gitlab || mattermost || dropbox || google || saml || oauth2) && ldap) { %>
<% }%> <% if(ldap) { %> @@ -73,7 +78,7 @@ <% } %> - <% if((facebook || twitter || github || gitlab || mattermost || dropbox || google || ldap) && email) { %> + <% if((facebook || twitter || github || gitlab || mattermost || dropbox || google || ldap || oauth2) && email) { %>
<% }%> <% if(email) { %> -- cgit v1.2.3