Skip to content

Commit

Permalink
Fix wrong password requirement description with zxcvbn driver (#6922)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Sep 13, 2019
1 parent 70d342a commit b0aa130
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions plugins/password/drivers/zxcvbn.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@ class rcube_zxcvbn_password
{
function strength_rules()
{
$rcmail = rcmail::get_instance();

$rules = array();
$rules[] = $rcmail->gettext('password.passwordweak');
$rules[] = $rcmail->gettext('password.passwordnoseq');
$rules[] = $rcmail->gettext('password.passwordnocommon');
$rcmail = rcmail::get_instance();
$rules = array(
$rcmail->gettext('password.passwordnoseq'),
$rcmail->gettext('password.passwordnocommon'),
);

return $rules;
}
Expand Down

0 comments on commit b0aa130

Please sign in to comment.