@@ -220,14 +220,17 @@ |
||
220 | 220 | $errors = []; |
221 | 221 | |
222 | 222 | $isValid = true; |
223 | - try { |
|
223 | + try |
|
224 | + { |
|
224 | 225 | Validator::make([ |
225 | 226 | 'password' => $values['customer.newpassword'], |
226 | 227 | 'password_confirmation' => $values['customer.confirmnewpassword'] |
227 | 228 | ], [ |
228 | 229 | 'password' => ['required', 'string', new Password, 'confirmed'] |
229 | 230 | ])->validate(); |
230 | - } catch (\Exception $ex) { |
|
231 | + } |
|
232 | + catch (\Exception $ex) |
|
233 | + { |
|
231 | 234 | $isValid = false; |
232 | 235 | $errors['passwordRules'] = "The password does not meet the password requirements!"; |
233 | 236 | } |