summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-03-31 08:59:08 -0400
committerChristopher Speller <crspeller@gmail.com>2016-03-31 08:59:08 -0400
commitc8b2af62468c5d0906ba08d3e2a378681f99eb08 (patch)
tree1695062090143e1287c41b0eec2dcf085a5acbe5 /model
parent43aa7e4c792b5ee2cbda4c853eeed4fadb8a93b3 (diff)
downloadchat-c8b2af62468c5d0906ba08d3e2a378681f99eb08.tar.gz
chat-c8b2af62468c5d0906ba08d3e2a378681f99eb08.tar.bz2
chat-c8b2af62468c5d0906ba08d3e2a378681f99eb08.zip
Fix login
Diffstat (limited to 'model')
-rw-r--r--model/user.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/model/user.go b/model/user.go
index 7622e48f0..173fe2b4e 100644
--- a/model/user.go
+++ b/model/user.go
@@ -358,6 +358,13 @@ func (u *User) IsSSOUser() bool {
return false
}
+func (u *User) IsLDAPUser() bool {
+ if u.AuthService == USER_AUTH_SERVICE_LDAP {
+ return true
+ }
+ return false
+}
+
func (u *User) PreExport() {
u.Password = ""
u.AuthData = ""