diff --git a/app/Listeners/AuthLogin.php b/app/Listeners/AuthLogin.php index 45bf9c81a..90806965b 100644 --- a/app/Listeners/AuthLogin.php +++ b/app/Listeners/AuthLogin.php @@ -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();