Merge branch 'main' into koda/137-user-edit-flow
linter / quality (pull_request) Successful in 1m19s
tests / ci (8.4) (pull_request) Failing after 1m14s

This commit is contained in:
2026-05-23 01:05:12 +02:00
8 changed files with 259 additions and 12 deletions
@@ -19,7 +19,19 @@ class PasswordUpdateRequest extends FormRequest
{
return [
'current_password' => $this->currentPasswordRules(),
'password' => $this->passwordRules(),
'password' => [...$this->passwordRules(), 'different:current_password'],
];
}
/**
* Get the custom validation messages for the request.
*
* @return array<string, string>
*/
public function messages(): array
{
return [
'password.different' => 'The new password must be different from your current password.',
];
}
}