mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 04:24:36 -04:00
Fixes for tests
This commit is contained in:
parent
0edfc0d850
commit
de853b3445
@ -109,6 +109,7 @@ class LoginController extends BaseController
|
|||||||
|
|
||||||
if ($this->attemptLogin($request)) {
|
if ($this->attemptLogin($request)) {
|
||||||
LightLogs::create(new LoginSuccess())
|
LightLogs::create(new LoginSuccess())
|
||||||
|
->increment()
|
||||||
->batch();
|
->batch();
|
||||||
|
|
||||||
LightLogs::create(new LoginMeta($request->email, $request->ip, 'success'))
|
LightLogs::create(new LoginMeta($request->email, $request->ip, 'success'))
|
||||||
@ -163,7 +164,6 @@ class LoginController extends BaseController
|
|||||||
->batch();
|
->batch();
|
||||||
|
|
||||||
LightLogs::create(new LoginMeta($request->email, $request->ip, 'failure'))
|
LightLogs::create(new LoginMeta($request->email, $request->ip, 'failure'))
|
||||||
->increment()
|
|
||||||
->batch();
|
->batch();
|
||||||
|
|
||||||
$this->incrementLoginAttempts($request);
|
$this->incrementLoginAttempts($request);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user