include key into user.set_password

This commit is contained in:
sirux88
2023-01-14 10:16:03 +01:00
committed by Daniel García
parent 2d8c8e18f7
commit cc91ac6cc0
4 changed files with 21 additions and 12 deletions

View File

@@ -153,7 +153,7 @@ async fn _password_login(
// Change the KDF Iterations
if user.password_iterations != CONFIG.password_iterations() {
user.password_iterations = CONFIG.password_iterations();
user.set_password(password, false, None);
user.set_password(password, None, false, None);
if let Err(e) = user.save(conn).await {
error!("Error updating user: {:#?}", e);