mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 06:23:18 +00:00
Update LoginController
This commit is contained in:
parent
50b77b3479
commit
2b76db6421
1 changed files with 5 additions and 1 deletions
|
@ -49,7 +49,7 @@ class LoginController extends Controller
|
||||||
public function validateLogin($request)
|
public function validateLogin($request)
|
||||||
{
|
{
|
||||||
$rules = [
|
$rules = [
|
||||||
$this->username() => 'required|string',
|
$this->username() => 'required|email',
|
||||||
'password' => 'required|string',
|
'password' => 'required|string',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -70,6 +70,10 @@ class LoginController extends Controller
|
||||||
*/
|
*/
|
||||||
protected function authenticated($request, $user)
|
protected function authenticated($request, $user)
|
||||||
{
|
{
|
||||||
|
if($user->status == 'deleted') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$log = new AccountLog();
|
$log = new AccountLog();
|
||||||
$log->user_id = $user->id;
|
$log->user_id = $user->id;
|
||||||
$log->item_id = $user->id;
|
$log->item_id = $user->id;
|
||||||
|
|
Loading…
Reference in a new issue