Private
Public Access
1
0

fix(auth): update SQL queries to use totp_secret_encrypted instead of dropped totp_secret column

Co-authored-by: Draco Lunaris <331325+Draco-Lunaris@users.noreply.github.com>
This commit is contained in:
Draco-Lunaris-Echo
2026-06-05 21:08:00 -05:00
committed by GitHub
parent 604b31b937
commit 0296cf9c51
2 changed files with 3 additions and 3 deletions

View File

@ -435,7 +435,7 @@ async fn disable_mfa(
));
}
sqlx::query("UPDATE users SET totp_secret = NULL, mfa_enabled = FALSE WHERE id = $1")
sqlx::query("UPDATE users SET totp_secret_encrypted = NULL, totp_secret_nonce = NULL, mfa_enabled = FALSE WHERE id = $1")
.bind(auth_user.user_id)
.execute(&state.db)
.await