Exempting bot accounts from MFA requirements. (#10527)
Этот коммит содержится в:
коммит произвёл
Lev
родитель
0bef611f7a
Коммит
0e6f335f74
@@ -125,6 +125,11 @@ func (c *Context) MfaRequired() {
|
||||
return
|
||||
}
|
||||
|
||||
// Bots are exempt
|
||||
if user.IsBot {
|
||||
return
|
||||
}
|
||||
|
||||
if !user.MfaActive {
|
||||
c.Err = model.NewAppError("", "api.context.mfa_required.app_error", nil, "MfaRequired", http.StatusForbidden)
|
||||
return
|
||||
|
||||
Ссылка в новой задаче
Block a user