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