Skip to content

Commit 8768108

Browse files
committed
fix: compilation
1 parent faf1ad9 commit 8768108

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

crates/router/src/utils/user/two_factor_auth.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ pub async fn insert_recovery_code_in_redis(state: &SessionState, user_id: &str)
116116
.change_context(UserErrors::InternalServerError)
117117
}
118118

119-
pub async fn delete_totp_from_redis(state: &AppState, user_id: &str) -> UserResult<()> {
119+
pub async fn delete_totp_from_redis(state: &SessionState, user_id: &str) -> UserResult<()> {
120120
let redis_conn = super::get_redis_connection(state)?;
121121
let key = format!("{}{}", consts::user::REDIS_TOTP_PREFIX, user_id);
122122
redis_conn
@@ -126,7 +126,10 @@ pub async fn delete_totp_from_redis(state: &AppState, user_id: &str) -> UserResu
126126
.map(|_| ())
127127
}
128128

129-
pub async fn delete_recovery_code_from_redis(state: &AppState, user_id: &str) -> UserResult<()> {
129+
pub async fn delete_recovery_code_from_redis(
130+
state: &SessionState,
131+
user_id: &str,
132+
) -> UserResult<()> {
130133
let redis_conn = super::get_redis_connection(state)?;
131134
let key = format!("{}{}", consts::user::REDIS_RECOVERY_CODE_PREFIX, user_id);
132135
redis_conn

0 commit comments

Comments
 (0)