mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-15 14:56:42 +00:00
GODT-2180: Allow login with FIDO2
The API docs didn't specify what the "integer" meant. Turns out it's a bitfield; we can't compare with equality.
This commit is contained in:
@ -182,7 +182,7 @@ func (bridge *Bridge) LoginFull(
|
||||
return "", fmt.Errorf("failed to begin login process: %w", err)
|
||||
}
|
||||
|
||||
if auth.TwoFA.Enabled == proton.TOTPEnabled {
|
||||
if auth.TwoFA.Enabled&proton.TOTPEnabled != 0 {
|
||||
logrus.WithField("userID", auth.UserID).Info("Requesting TOTP")
|
||||
|
||||
totp, err := getTOTP()
|
||||
|
||||
Reference in New Issue
Block a user