Can replace password
This commit is contained in:
		@@ -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!"));
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user