From fef10d24fd18ac8279ee826652a942e6e10c42df Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 14 Aug 2019 22:33:31 +0300 Subject: [PATCH] protonmail: update AuthInfo struct --- protonmail/auth.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/protonmail/auth.go b/protonmail/auth.go index 8b75e2b..6f0b918 100644 --- a/protonmail/auth.go +++ b/protonmail/auth.go @@ -21,7 +21,12 @@ type authInfoReq struct { } type AuthInfo struct { - TwoFactor int + TwoFactor int + TwoFactorInfo struct { + Enabled int + U2F interface{} // TODO + TOTP int + } `json:"2FA"` version int modulus string serverEphemeral string