You've already forked AstralRinth
forked from didirus/AstralRinth
GDPR export route (#969)
* GDPR export route * make users able to access
This commit is contained in:
@@ -1641,14 +1641,13 @@ async fn validate_2fa_code(
|
||||
}
|
||||
|
||||
if input == token {
|
||||
conn
|
||||
.set(
|
||||
TOTP_NAMESPACE,
|
||||
&format!("{}-{}", token, user_id.0),
|
||||
"",
|
||||
Some(60),
|
||||
)
|
||||
.await?;
|
||||
conn.set(
|
||||
TOTP_NAMESPACE,
|
||||
&format!("{}-{}", token, user_id.0),
|
||||
"",
|
||||
Some(60),
|
||||
)
|
||||
.await?;
|
||||
|
||||
Ok(true)
|
||||
} else if allow_backup {
|
||||
|
||||
Reference in New Issue
Block a user