GODT-2178: Bump go-proton-api to fix drafts

This commit is contained in:
James Houlahan
2022-12-05 15:13:33 +01:00
parent 990b8cda96
commit 04881b9b78
8 changed files with 14 additions and 43 deletions

View File

@ -406,7 +406,7 @@ func (s *Service) Login(ctx context.Context, login *LoginRequest) (*emptypb.Empt
s.auth = auth
switch {
case auth.TwoFA.Enabled&proton.TOTPEnabled != 0:
case auth.TwoFA.Enabled&proton.HasTOTP != 0:
_ = s.SendEvent(NewLoginTfaRequestedEvent(login.Username))
case auth.PasswordMode == proton.TwoPasswordMode: