diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-11-06 08:56:13 -0500 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-11-06 08:56:13 -0500 |
commit | 7eca077877787b0cd9eb7764f46e9eba78fb7382 (patch) | |
tree | 0a335cccc4d8dc9fcaf18903ac56877c6886f9f1 /api/user.go | |
parent | 6417d4728dc9351d5bf3180e458be8ce6e1e642f (diff) | |
download | chat-7eca077877787b0cd9eb7764f46e9eba78fb7382.tar.gz chat-7eca077877787b0cd9eb7764f46e9eba78fb7382.tar.bz2 chat-7eca077877787b0cd9eb7764f46e9eba78fb7382.zip |
Prevent SSO users from changing their email
Diffstat (limited to 'api/user.go')
-rw-r--r-- | api/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go index c871d7c79..774ceddbf 100644 --- a/api/user.go +++ b/api/user.go @@ -114,7 +114,7 @@ func createUser(c *Context, w http.ResponseWriter, r *http.Request) { sendWelcomeEmail = false } - if len(user.AuthData) > 0 && len(user.AuthService) > 0 { + if user.IsSSOUser() { user.EmailVerified = true } |