Can replace password
This commit is contained in:
parent
c99a3a319c
commit
27910a03a8
@ -78,7 +78,7 @@ pub async fn replace_password(
|
|||||||
|
|
||||||
if !StaticConstraints::default()
|
if !StaticConstraints::default()
|
||||||
.password_len
|
.password_len
|
||||||
.validate(&q.old_password)
|
.validate(&q.new_password)
|
||||||
{
|
{
|
||||||
return Ok(HttpResponse::BadRequest().json("Nouveau mot de passe invalide!"));
|
return Ok(HttpResponse::BadRequest().json("Nouveau mot de passe invalide!"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user