3
0

Fix uneeded error handling after successful login

This commit is contained in:
Denis Arh
2021-10-06 12:13:01 +02:00
parent ccdc405bcb
commit 88ad86e39c

View File

@@ -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)