forked from Silverfish/proton-bridge
Merge branch 'release/perth_narrows' into devel
This commit is contained in:
@ -428,7 +428,7 @@ func (s *Service) Login(ctx context.Context, login *LoginRequest) (*emptypb.Empt
|
||||
s.auth = auth
|
||||
|
||||
switch {
|
||||
case auth.TwoFA.Enabled == proton.TOTPEnabled:
|
||||
case auth.TwoFA.Enabled&proton.HasTOTP != 0:
|
||||
_ = s.SendEvent(NewLoginTfaRequestedEvent(login.Username))
|
||||
|
||||
case auth.PasswordMode == proton.TwoPasswordMode:
|
||||
|
||||
Reference in New Issue
Block a user