dbms init...1
This commit is contained in:
parent
0602a0b649
commit
7575272c2c
@ -85,7 +85,8 @@ abstract class AuthController extends CommonController
|
|||||||
$this->init(__FUNCTION__);
|
$this->init(__FUNCTION__);
|
||||||
helper(['form']);
|
helper(['form']);
|
||||||
//구글 로그인 BUTTON용
|
//구글 로그인 BUTTON용
|
||||||
$this->google_url = $this->getSocket()->createAuthUrl();
|
// $this->google_url = $this->getSocket()->createAuthUrl();
|
||||||
|
$this->google_url = "";
|
||||||
$this->forms = ['attributes' => ['method' => "post",], 'hiddens' => []];
|
$this->forms = ['attributes' => ['method' => "post",], 'hiddens' => []];
|
||||||
return $this->getResultPageByActon($this->action);
|
return $this->getResultPageByActon($this->action);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
|||||||
@ -43,8 +43,7 @@ class GoogleService extends AuthService
|
|||||||
$this->_mySocket->setToken($access_code);
|
$this->_mySocket->setToken($access_code);
|
||||||
$sns_entity = $this->_mySocket->signup();
|
$sns_entity = $this->_mySocket->signup();
|
||||||
// local db 사용와의 연결 확인
|
// local db 사용와의 연결 확인
|
||||||
$this->getModel()->where($this->getModel()::PK, $sns_entity->getParent());
|
$entity = $this->getEntity($sns_entity->getParent());
|
||||||
$entity = $this->getEntity();
|
|
||||||
if (!$entity) {
|
if (!$entity) {
|
||||||
throw new PageNotFoundException("회원[{$sns_entity->getTitle()}]님은 아직 로컬사용자 연결이 이루어지지 않았습니다.");
|
throw new PageNotFoundException("회원[{$sns_entity->getTitle()}]님은 아직 로컬사용자 연결이 이루어지지 않았습니다.");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -31,8 +31,7 @@ class LocalService extends AuthService
|
|||||||
|
|
||||||
public function checkUser(array $formDatas): Entity
|
public function checkUser(array $formDatas): Entity
|
||||||
{
|
{
|
||||||
$this->getModel()->where("id", $formDatas['id']);
|
$entity = $this->getEntity(['id' => $formDatas['id']]);
|
||||||
$entity = $this->getEntity();
|
|
||||||
if (is_null($entity) || !isset($entity->passwd)) {
|
if (is_null($entity) || !isset($entity->passwd)) {
|
||||||
throw new \Exception("사용자ID: {$formDatas['id']}가 존재하지 않습니다.");
|
throw new \Exception("사용자ID: {$formDatas['id']}가 존재하지 않습니다.");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user