[MM-37585] (#28634)
* add tests * pass userID to the function instead of the user object. * remove concurrent login simulation --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
@@ -99,7 +99,7 @@ func (a *App) SwitchEmailToLdap(c request.CTX, email, password, code, ldapLoginI
|
||||
return "", err
|
||||
}
|
||||
|
||||
if err := a.CheckPasswordAndAllCriteria(c, user, password, code); err != nil {
|
||||
if err := a.CheckPasswordAndAllCriteria(c, user.Id, password, code); err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user