Update password #6

Merged
phoenix merged 13 commits from update_password into main 2026-09-22 12:47:43 -04:00
Showing only changes of commit e0cbfda252 - Show all commits
+2
View File
@@ -320,9 +320,11 @@ pub mod endpoint {
if !payload.is_valid() {
response.message = "Invalid request".to_string();
println!("Invalid request");
return (axum::http::StatusCode::BAD_REQUEST, axum::Json(response));
}
println!("Get User");
match repo::user::get(&pool, &payload.username).await {
Ok(user) => {
if hashing::verify_password(&payload.current_password, user.password.clone())