diff options
author | enahum <nahumhbl@gmail.com> | 2016-09-28 09:49:54 -0300 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-09-28 08:49:54 -0400 |
commit | caeadde2f24384deca67f9d00999252ee53570ad (patch) | |
tree | 717b20d9034ff12ffab301c0defc2b0b7bb046e4 /model | |
parent | 45ca052482d42a535f399b149c7e26e99663ac15 (diff) | |
download | chat-caeadde2f24384deca67f9d00999252ee53570ad.tar.gz chat-caeadde2f24384deca67f9d00999252ee53570ad.tar.bz2 chat-caeadde2f24384deca67f9d00999252ee53570ad.zip |
PLT-4155 Show correct login method in system console (#4102)
* PLT-4155 Show correct login method in system console
* Remove checking for system admin privileges in getProfiles
Diffstat (limited to 'model')
-rw-r--r-- | model/user.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/model/user.go b/model/user.go index b7ac85baa..1b51171ad 100644 --- a/model/user.go +++ b/model/user.go @@ -232,13 +232,15 @@ func (u *User) Sanitize(options map[string]bool) { if len(options) != 0 && !options["passwordupdate"] { u.LastPasswordUpdate = 0 } + if len(options) != 0 && !options["authservice"] { + u.AuthService = "" + } } func (u *User) ClearNonProfileFields() { u.Password = "" u.AuthData = new(string) *u.AuthData = "" - u.AuthService = "" u.MfaActive = false u.MfaSecret = "" u.EmailVerified = false |