From 5cda55086acfc1000f0a0062045db50ad415db59 Mon Sep 17 00:00:00 2001
From: Christoph Witzany
Date: Sun, 29 Oct 2017 11:16:40 +0100
Subject: Add mattermost authentication
---
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 b9c5c426..230eb117 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 || dropbox || google || ldap || email) { %>
+ <% if(facebook || twitter || github || gitlab || mattermost || dropbox || google || ldap || email) { %>
<% } %>
@@ -48,7 +48,7 @@
<% if (errorMessage && errorMessage.length > 0) { %>
<%= errorMessage %>
<% } %>
- <% if(facebook || twitter || github || gitlab || dropbox || google || ldap || email) { %>
+ <% if(facebook || twitter || github || gitlab || mattermost || dropbox || google || ldap || email) { %>
<%= __('Sign In') %>
diff --git a/public/views/shared/signin-modal.ejs b/public/views/shared/signin-modal.ejs
index a8af62e7..89b542e9 100644
--- a/public/views/shared/signin-modal.ejs
+++ b/public/views/shared/signin-modal.ejs
@@ -28,6 +28,11 @@
<%= __('Sign in via %s', 'GitLab') %>
<% } %>
+ <% if(mattermost) { %>
+
+ <%= __('Sign in via %s', 'Mattermost') %>
+
+ <% } %>
<% if(dropbox) { %>
<%= __('Sign in via %s', 'Dropbox') %>
@@ -38,7 +43,7 @@
<%= __('Sign in via %s', 'Google') %>
<% } %>
- <% if((facebook || twitter || github || gitlab || dropbox || google) && ldap) { %>
+ <% if((facebook || twitter || github || gitlab || mattermost || dropbox || google) && ldap) { %>
<% }%>
<% if(ldap) { %>
@@ -63,7 +68,7 @@
<% } %>
- <% if((facebook || twitter || github || gitlab || dropbox || google || ldap) && email) { %>
+ <% if((facebook || twitter || github || gitlab || mattermost || dropbox || google || ldap) && email) { %>
<% }%>
<% if(email) { %>
--
cgit v1.2.3