@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | { |
59 | 59 | $result = $this->is_username_available($fields); |
60 | 60 | |
61 | - if ( $fields['password']['switch'] |
|
61 | + if ($fields['password']['switch'] |
|
62 | 62 | && !$this->get_accounthelper()->check_password_strength((string) $fields['password']['password'])) { |
63 | 63 | $result = ['password' => $this->_l10n->get('password weak')]; |
64 | 64 | } |
@@ -162,10 +162,10 @@ discard block |
||
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; |
@@ -162,10 +162,10 @@ |
||
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; |