From 0e6f335f741b27960e72e0e21014c6b643a09361 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Tue, 2 Apr 2019 13:27:49 -0700 Subject: [PATCH] Exempting bot accounts from MFA requirements. (#10527) --- web/context.go | 5 +++++ 1 file changed, 5 insertions(+) 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