mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Merge pull request #1332 from mattermost/plt-560
PLT-560 Prevent SSO users from changing their email
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user