summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-11-06 08:56:13 -0500
committerJoramWilander <jwawilander@gmail.com>2015-11-06 08:56:13 -0500
commit7eca077877787b0cd9eb7764f46e9eba78fb7382 (patch)
tree0a335cccc4d8dc9fcaf18903ac56877c6886f9f1 /api
parent6417d4728dc9351d5bf3180e458be8ce6e1e642f (diff)
downloadchat-7eca077877787b0cd9eb7764f46e9eba78fb7382.tar.gz
chat-7eca077877787b0cd9eb7764f46e9eba78fb7382.tar.bz2
chat-7eca077877787b0cd9eb7764f46e9eba78fb7382.zip
Prevent SSO users from changing their email
Diffstat (limited to 'api')
-rw-r--r--api/user.go2
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
}