Skip to main content

new_password_errors

Function new_password_errors 

Source
pub fn new_password_errors(password: &str, confirmation: &str) -> FieldErrors
Expand description

Refuses a new password shorter than MIN_PASSWORD_CHARS under the password key, and a confirmation that differs from it under password_confirmation: the checks a sign-up form with SignUp’s password keys runs in Registrar::validate.