mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Apparently this is changed in PHPStorm’s formatting templates so there you go [skip ci].
This commit is contained in:
@@ -140,18 +140,18 @@ class ProfileController extends Controller
|
||||
return redirect(route('index'));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param User $user
|
||||
* @param string $current
|
||||
* @param string $new
|
||||
* @param string $newConfirmation
|
||||
*
|
||||
* @return bool
|
||||
* @throws ValidationException
|
||||
*/
|
||||
protected function validatePassword(User $user, string $current, string $new): bool
|
||||
{
|
||||
if (!Hash::check($current, auth()->user()->password)) {
|
||||
if (!Hash::check($current, $user->password)) {
|
||||
throw new ValidationException(strval(trans('firefly.invalid_current_password')));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user