Update LoginController

This commit is contained in:
Daniel Supernault 2019-03-19 20:51:45 -06:00
parent 50b77b3479
commit 2b76db6421
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -49,7 +49,7 @@ class LoginController extends Controller
public function validateLogin($request)
{
$rules = [
$this->username() => 'required|string',
$this->username() => 'required|email',
'password' => 'required|string',
];
@ -70,6 +70,10 @@ class LoginController extends Controller
*/
protected function authenticated($request, $user)
{
if($user->status == 'deleted') {
return;
}
$log = new AccountLog();
$log->user_id = $user->id;
$log->item_id = $user->id;