mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 01:06:46 +00:00
Import statements and update configuration.
This commit is contained in:
@@ -34,6 +34,7 @@ use Illuminate\Contracts\Validation\Validator as ValidatorContract;
|
||||
use Illuminate\Routing\Route;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
use Illuminate\Support\Facades\Route as RouteFacade;
|
||||
use Hash;
|
||||
|
||||
/**
|
||||
* Trait RequestInformation
|
||||
@@ -169,7 +170,7 @@ trait RequestInformation
|
||||
*/
|
||||
final protected function validatePassword(User $user, string $current, string $new): bool // get request info
|
||||
{
|
||||
if (!\Hash::check($current, $user->password)) {
|
||||
if (!Hash::check($current, $user->password)) {
|
||||
throw new ValidationException((string) trans('firefly.invalid_current_password'));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user