mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-21 11:48:53 +00:00
Cleaned up a lot of source, finished the ChartController. [skip ci]
This commit is contained in:
@@ -33,9 +33,11 @@ class EloquentUserRepository implements UserRepositoryInterface
|
||||
if (!$user->save()) {
|
||||
\Log::error('Invalid user');
|
||||
\Session::flash('error', 'Input invalid, please try again: ' . $user->errors()->first());
|
||||
|
||||
return false;
|
||||
}
|
||||
$user->save();
|
||||
|
||||
return $user;
|
||||
}
|
||||
|
||||
@@ -51,6 +53,7 @@ class EloquentUserRepository implements UserRepositoryInterface
|
||||
if (\Hash::check($array['password'], $user->password)) {
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -87,6 +90,7 @@ class EloquentUserRepository implements UserRepositoryInterface
|
||||
$user->password = $password;
|
||||
/** @noinspection PhpUndefinedMethodInspection */
|
||||
$user->save();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user