mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
LDAP users should not be subject to password guess limits or email verification (#3245)
This commit is contained in:
committed by
enahum
parent
8936d67044
commit
919eea73b6
@@ -56,9 +56,12 @@ func checkLdapUserPasswordAndAllCriteria(ldapId *string, password string, mfaTok
|
||||
user = ldapUser
|
||||
}
|
||||
|
||||
if err := checkUserAdditionalAuthenticationCriteria(user, mfaToken); err != nil {
|
||||
err.StatusCode = http.StatusUnauthorized
|
||||
return user, err
|
||||
if err := checkUserMfa(user, mfaToken); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if err := checkUserNotDisabled(user); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// user successfully authenticated
|
||||
|
||||
Reference in New Issue
Block a user