From 7eca077877787b0cd9eb7764f46e9eba78fb7382 Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Fri, 6 Nov 2015 08:56:13 -0500 Subject: Prevent SSO users from changing their email --- api/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api') 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 } -- cgit v1.2.3-1-g7c22