Archived
1
0
Fork 0

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:
Henrik Hautakoski 2018-08-15 21:56:54 +02:00
parent 9bd0ef86fc
commit c71416908a
No known key found for this signature in database
GPG key ID: 839F3A7EAFAEAFAA

View file

@ -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,