mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-08 02:38:09 +00:00
Improve test coverage and efficiency for accounts and budgets.
This commit is contained in:
@@ -33,6 +33,7 @@ use Log;
|
||||
|
||||
/**
|
||||
* Class ForgotPasswordController
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class ForgotPasswordController extends Controller
|
||||
{
|
||||
@@ -72,6 +73,7 @@ class ForgotPasswordController extends Controller
|
||||
$this->validateEmail($request);
|
||||
|
||||
// verify if the user is not a demo user. If so, we give him back an error.
|
||||
/** @var User $user */
|
||||
$user = User::where('email', $request->get('email'))->first();
|
||||
|
||||
if (null !== $user && $repository->hasRole($user, 'demo')) {
|
||||
|
||||
Reference in New Issue
Block a user