@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | $result = $this->is_username_available($fields); |
| 48 | 48 | |
| 49 | 49 | $accounthelper = new org_openpsa_user_accounthelper(); |
| 50 | - if ($fields['password']['switch'] && !$accounthelper->check_password_strength($fields['password']['password'])){ |
|
| 50 | + if ($fields['password']['switch'] && !$accounthelper->check_password_strength($fields['password']['password'])) { |
|
| 51 | 51 | $result = ['password' => midcom::get()->i18n->get_string('password weak', 'org.openpsa.user')]; |
| 52 | 52 | } |
| 53 | 53 | |
@@ -149,10 +149,10 @@ discard block |
||
| 149 | 149 | $user = new midcom_db_person($fields["person"]); |
| 150 | 150 | |
| 151 | 151 | $accounthelper = new org_openpsa_user_accounthelper($user); |
| 152 | - if (!$accounthelper->check_password_reuse($fields['new_password'])){ |
|
| 152 | + if (!$accounthelper->check_password_reuse($fields['new_password'])) { |
|
| 153 | 153 | $result['password'] = midcom::get()->i18n->get_string('password was already used', 'org.openpsa.user'); |
| 154 | 154 | } |
| 155 | - if (!$accounthelper->check_password_strength($fields['new_password'])){ |
|
| 155 | + if (!$accounthelper->check_password_strength($fields['new_password'])) { |
|
| 156 | 156 | $result['password'] = midcom::get()->i18n->get_string('password weak', 'org.openpsa.user'); |
| 157 | 157 | } |
| 158 | 158 | return $result ?: true; |
@@ -142,7 +142,8 @@ |
||
| 142 | 142 | //create reflector with linked object to get the right label |
| 143 | 143 | try { |
| 144 | 144 | $linked_object = midcom::get()->dbfactory->get_object_by_guid($entry->linkGuid); |
| 145 | - } catch (midcom_error $e) { |
|
| 145 | + } |
|
| 146 | + catch (midcom_error $e) { |
|
| 146 | 147 | unset($data['entries'][$i]); |
| 147 | 148 | $e->log(); |
| 148 | 149 | continue; |