From ef184a2cb40ff46c25d22e0c11c5b684f6b4e498 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 25 Nov 2020 10:11:50 -0700 Subject: [PATCH] Update AuthLogin listener --- app/Listeners/AuthLogin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();