Exempting bot accounts from MFA requirements. (#10527)

Этот коммит содержится в:
Christopher Speller
2019-04-02 13:27:49 -07:00
коммит произвёл 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