app/library/Auth.php: in loginOauth() no need to set status active anymore User::findFirstByOAuth() do not return deleted users.
This commit is contained in:
parent
9bd0ef86fc
commit
c71416908a
1 changed files with 0 additions and 8 deletions
|
|
@ -55,14 +55,6 @@ class Auth extends Component
|
||||||
return false;
|
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->setIdentity($user->getId());
|
||||||
|
|
||||||
$this->eventsManager->fire('auth:onLogin', $this,
|
$this->eventsManager->fire('auth:onLogin', $this,
|
||||||
|
|
|
||||||
Reference in a new issue