mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-13 17:09:07 +02:00
Check if login failed
This commit is contained in:
@@ -652,7 +652,7 @@ func (s *Server) Login(callerCtx context.Context, msg *proto.LoginRequest) (*pro
|
|||||||
// to retry, because turning them into an SSO prompt asks the user to solve
|
// to retry, because turning them into an SSO prompt asks the user to solve
|
||||||
// something that is not theirs to solve, and a browser login cannot succeed
|
// something that is not theirs to solve, and a browser login cannot succeed
|
||||||
// while Management is unreachable anyway.
|
// while Management is unreachable anyway.
|
||||||
if loginStatus != internal.StatusNeedsLogin {
|
if loginStatus != internal.StatusNeedsLogin && loginStatus != internal.StatusLoginFailed {
|
||||||
state.Set(loginStatus)
|
state.Set(loginStatus)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user