Fix synxtax
soaricarus_auth Build / Rustfmt (pull_request) Failing after 2m44s
soaricarus_auth Build / Clippy (pull_request) Failing after 4m8s
soaricarus_auth Build / Check (pull_request) Failing after 4m10s
soaricarus_auth Build / Test Suite (pull_request) Failing after 4m21s
soaricarus_auth Build / build (pull_request) Failing after 4m20s

This commit is contained in:
2026-09-20 19:32:26 -04:00
parent 9b4d0b7b32
commit 53ed0060c8
+5 -1
View File
@@ -324,7 +324,11 @@ pub mod endpoint {
match repo::salt::get(&pool, &user.salt_id).await {
Ok(salt) => {
// Left off here
let updated_hashed_password = hashing::hash_password(&payload.updated_password, &salt).unwrap();
let updated_salt_string = hashing::generate_salt().unwrap();
let mut updated_salt = simodels::user::salt::Salt::default();
updated_salt.salt = updated_salt_string.to_string();
updated_salt.id = salt.id.clone();
let updated_hashed_password = hashing::hash_password(&payload.updated_password, &updated_salt_string).unwrap();
match repo::user::update_password(&pool, &user, &updated_hashed_password).await {
Ok(_) => {