Add 2fa compliance (#12)

* Add 2fa

* Apply Changes
This commit is contained in:
C0D3 M4513R
2024-07-21 03:01:06 +02:00
committed by GitHub
parent 4294b4bff4
commit b1f02f4785
6 changed files with 35 additions and 4 deletions

View File

@ -0,0 +1,12 @@
#[derive(Serialize, Deserialize)]
#[serde(untagged)]
pub enum EitherUserOrTwoFactor{
CurrentUser(CurrentUser),
RequiresTwoFactorAuth(RequiresTwoFactorAuth),
}
#[derive(Clone, Debug, PartialEq, Eq, Default, Serialize, Deserialize)]
pub struct RequiresTwoFactorAuth{
#[serde(rename = "requiresTwoFactorAuth")]
pub requires_two_factor_auth: Vec<String>
}