diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-09-15 20:30:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-15 20:30:40 +0200 |
commit | e9adcde4648b54db8d40f314ca938dca5080bb9c (patch) | |
tree | bd826aa5f5857e063d575fec1ec16068712edd4a /userprefs.cgi | |
parent | 06c57b6e475767923f8294cf93fd746d45f3dc6f (diff) | |
download | bugzilla-e9adcde4648b54db8d40f314ca938dca5080bb9c.tar.gz bugzilla-e9adcde4648b54db8d40f314ca938dca5080bb9c.tar.xz |
Bug 1391702 - Replace Bugzilla::User::validate_password() with calls to Data::Password::passwdqc
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-x | userprefs.cgi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/userprefs.cgi b/userprefs.cgi index 00d266eef..7d6a66c6d 100755 --- a/userprefs.cgi +++ b/userprefs.cgi @@ -95,8 +95,9 @@ sub SaveAccount { } if ($pwd1 ne "" || $pwd2 ne "") { - $pwd1 || ThrowUserError("new_password_missing"); - validate_password($pwd1, $pwd2); + ThrowUserError("new_password_missing") unless $pwd1; + Bugzilla->assert_password_is_secure($pwd1); + Bugzilla->assert_passwords_match($pwd1, $pwd2); if ($oldpassword ne $pwd1) { if ($user->mfa) { |