mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 15:46:44 +00:00
GODT-35: New pmapi client and manager using resty
This commit is contained in:
@ -24,14 +24,3 @@ type fakeUser struct {
|
||||
password string
|
||||
has2FA bool
|
||||
}
|
||||
|
||||
func (fu *fakeUser) get2FAInfo() *pmapi.TwoFactorInfo {
|
||||
twoFAEnabled := 0
|
||||
if fu.has2FA {
|
||||
twoFAEnabled = 1
|
||||
}
|
||||
return &pmapi.TwoFactorInfo{
|
||||
Enabled: twoFAEnabled,
|
||||
TOTP: 0,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user