From 88ad86e39c7f63752fceb31ba219bbb4e63a940e Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Wed, 6 Oct 2021 12:13:01 +0200 Subject: [PATCH] Fix uneeded error handling after successful login --- auth/handlers/handle_login.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/auth/handlers/handle_login.go b/auth/handlers/handle_login.go index 4b55daf3b..90eb0233a 100644 --- a/auth/handlers/handle_login.go +++ b/auth/handlers/handle_login.go @@ -116,6 +116,10 @@ func (h *AuthHandlers) loginProc(req *request.AuthReq) (err error) { return }() + if err == nil { + return nil + } + switch { case service.AuthErrInternalLoginDisabledByConfig().Is(err): h.localDisabledAlert(req)