forked from Silverfish/proton-bridge
Other: Fix wrong Errorf type
This commit is contained in:
@ -414,7 +414,7 @@ func (s *Service) Login2FA(ctx context.Context, login *LoginRequest) (*emptypb.E
|
|||||||
defer s.panicHandler.HandlePanic()
|
defer s.panicHandler.HandlePanic()
|
||||||
|
|
||||||
if s.auth.UID == "" || s.authClient == nil {
|
if s.auth.UID == "" || s.authClient == nil {
|
||||||
s.log.Errorf("Login 2FA: authethication incomplete %p %p", s.auth.UID, s.authClient)
|
s.log.Errorf("Login 2FA: authethication incomplete %s %p", s.auth.UID, s.authClient)
|
||||||
_ = s.SendEvent(NewLoginError(LoginErrorType_TFA_ABORT, "Missing authentication, try again."))
|
_ = s.SendEvent(NewLoginError(LoginErrorType_TFA_ABORT, "Missing authentication, try again."))
|
||||||
s.loginClean()
|
s.loginClean()
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user