This repository was archived by the owner on Jul 6, 2024. It is now read-only.
File tree 3 files changed +4
-2
lines changed
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " proton-api-rs"
3
3
authors = [
" Leander Beernaert <[email protected] >" ]
4
- version = " 0.10.1 "
4
+ version = " 0.10.2 "
5
5
edition = " 2021"
6
6
license = " AGPL-3.0-only"
7
7
description = " Unofficial implemention of proton REST API in rust"
@@ -48,4 +48,4 @@ required-features = ["http-reqwest"]
48
48
49
49
[[example ]]
50
50
name = " user_id_sync"
51
- required-features = [" http-ureq" ]
51
+ required-features = [" http-ureq" ]
Original file line number Diff line number Diff line change @@ -229,6 +229,7 @@ fn validate_server_proof(
229
229
TFAStatus :: None => Ok ( SessionType :: Authenticated ( session) ) ,
230
230
TFAStatus :: Totp => Ok ( SessionType :: AwaitingTotp ( TotpSession ( session) ) ) ,
231
231
TFAStatus :: FIDO2 => Err ( LoginError :: Unsupported2FA ( TwoFactorAuth :: FIDO2 ) ) ,
232
+ TFAStatus :: TotpOrFIDO2 => Ok ( SessionType :: AwaitingTotp ( TotpSession ( session) ) ) ,
232
233
}
233
234
}
234
235
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ pub enum TFAStatus {
104
104
None = 0 ,
105
105
Totp = 1 ,
106
106
FIDO2 = 2 ,
107
+ TotpOrFIDO2 = 3 ,
107
108
}
108
109
109
110
#[ doc( hidden) ]
You can’t perform that action at this time.
0 commit comments