Fix backend code styling

This commit is contained in:
MakingCG
2021-05-24 14:48:13 +00:00
committed by GitHub Actions
parent 99b4b030d2
commit 350f130d98
98 changed files with 1845 additions and 1845 deletions

View File

@@ -21,7 +21,7 @@ class UpdateUserPassword implements UpdatesUserPasswords
{
Validator::make($input, [
'current_password' => ['required', 'string'],
'password' => $this->passwordRules(),
'password' => $this->passwordRules(),
])->after(function ($validator) use ($user, $input) {
if (! isset($input['current_password']) || ! Hash::check($input['current_password'], $user->password)) {
$validator->errors()->add('current_password', __('The provided password does not match your current password.'));