Update AuthLogin listener

pull/2449/head
Daniel Supernault 2020-11-25 10:11:50 -07:00
rodzic 8e8e6cafec
commit ef184a2cb4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -42,7 +42,7 @@ class AuthLogin
protected function userProfile($user)
{
if (empty($user->profile)) {
if($user->created_at->lt(now()->subDays(1))) {
if($user->created_at->lt(now()->subDays(1)) && empty($user->status)) {
$p = Profile::withTrashed()->whereUserId($user->id)->first();
if($p) {
$p->restore();