|
@@ -162,10 +162,10 @@ |
|
|
block discarded – undo |
|
162
|
162
|
$result = []; |
|
163
|
163
|
|
|
164
|
164
|
$accounthelper = $this->get_accounthelper(new midcom_db_person($fields["person"])); |
|
165
|
|
- if (!$accounthelper->check_password_reuse($fields['new_password'])){ |
|
|
165
|
+ if (!$accounthelper->check_password_reuse($fields['new_password'])) { |
|
166
|
166
|
$result['password'] = $this->l10n->get('password was already used'); |
|
167
|
167
|
} |
|
168
|
|
- if (!$accounthelper->check_password_strength($fields['new_password'])){ |
|
|
168
|
+ if (!$accounthelper->check_password_strength($fields['new_password'])) { |
|
169
|
169
|
$result['password'] = $this->l10n->get('password weak'); |
|
170
|
170
|
} |
|
171
|
171
|
return $result ?: true; |
Please login to merge, or discard this patch.