diff --git a/web/context.go b/web/context.go index 7464ae0a82..174674ae13 100644 --- a/web/context.go +++ b/web/context.go @@ -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