Skip to content

Commit

Permalink
change the modify user's password logic
Browse files Browse the repository at this point in the history
  • Loading branch information
huangcheng committed Nov 30, 2023
1 parent 5ea9506 commit de7f498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pub async fn update_user_password(
let valid = verify(user.password, &record.password).map_err(|e| {
error!("{}", e);

ServiceError::Unauthorized
ServiceError::BadRequest(String::from("Invalid password"))
})?;

if !valid {
Expand Down

0 comments on commit de7f498

Please sign in to comment.