Can replace password

This commit is contained in:
Pierre HUBERT 2023-06-05 19:04:31 +02:00
parent c99a3a319c
commit 27910a03a8

View File

@ -78,7 +78,7 @@ pub async fn replace_password(
if !StaticConstraints::default()
.password_len
.validate(&q.old_password)
.validate(&q.new_password)
{
return Ok(HttpResponse::BadRequest().json("Nouveau mot de passe invalide!"));
}