Merge pull request #1332 from mattermost/plt-560

PLT-560 Prevent SSO users from changing their email
This commit is contained in:
Christopher Speller
2015-11-06 10:17:04 -05:00
4 changed files with 67 additions and 38 deletions

View File

@@ -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
}