From c71416908a9bcd03289f53d4693cc58ffd020bbf Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 15 Aug 2018 21:56:54 +0200 Subject: [PATCH] app/library/Auth.php: in loginOauth() no need to set status active anymore User::findFirstByOAuth() do not return deleted users. --- app/library/Auth.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/library/Auth.php b/app/library/Auth.php index f319c3c..5adfc8c 100644 --- a/app/library/Auth.php +++ b/app/library/Auth.php @@ -55,14 +55,6 @@ class Auth extends Component return false; } - // Here we activate the user. - // As for OAuth we perform registration if the user does not exist. - // We should therefore activate deleted accounts. - if ($user->Status == User::STATUS_DELETED) { - $user->Status = User::STATUS_ACTIVE; - $user->save(); - } - $this->setIdentity($user->getId()); $this->eventsManager->fire('auth:onLogin', $this,