servermgrv2 init...
This commit is contained in:
parent
8593daf8eb
commit
20cc4a5a2c
@ -105,14 +105,14 @@ class GoogleAdapter extends Adapter
|
||||
if (is_null($snsEntity)) {
|
||||
$snsEntity = $this->getUserSNSModel()->create($this->getSiteName(), $result);
|
||||
}
|
||||
if (!$snsEntity->getUserUID()) {
|
||||
if (!$snsEntity->user_id) {
|
||||
throw new \Exception($this->getSiteName() . "의{$result['email']}:{$result['name']}님은 아직 사용자 지정이 되지 않았습니다.");
|
||||
}
|
||||
if ($snsEntity->getStatus() !== DEFAULTS['STATUS']) {
|
||||
throw new \Exception($this->getSiteName() . "의{$result['email']}:{$result['name']}님은 " . lang("Admin/UserSNS.label." . $snsEntity->getStatus()) . "입니다");
|
||||
if ($snsEntity->status !== DEFAULTS['STATUS']) {
|
||||
throw new \Exception($this->getSiteName() . "의{$result['email']}:{$result['name']}님은 " . lang("Admin/UserSNS.label." . $snsEntity->status) . "입니다");
|
||||
}
|
||||
//인증된 사용자 정보를 가져온후 세션 정보 처리
|
||||
$entity = $this->getUserModel()->getEntity($snsEntity->getUserUID());
|
||||
$entity = $this->getUserModel()->getEntity($snsEntity->user_id);
|
||||
//Session에 인증정보 설정
|
||||
$this->setSessionInfo($entity);
|
||||
return $entity;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user