shoppingmall init...
This commit is contained in:
parent
514cba6a9d
commit
de85f435eb
@ -58,11 +58,11 @@ class AuthController extends BaseController
|
|||||||
return view('auth/login', $this->_viewDatas);
|
return view('auth/login', $this->_viewDatas);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function signin(string $adapter)
|
public function signin(string $site)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
//각 Adapter별 인층체크 후 Session에 인증정보 설정
|
//각 Adapter별 인층체크 후 Session에 인증정보 설정
|
||||||
$this->getAdapter($adapter)->signin($this->request->getVar());
|
$this->getAdapter($site)->signin($this->request->getVar());
|
||||||
$return_url = session()->get(LOGINS['RETURN_URL']) ? session()->get(LOGINS['RETURN_URL']) : "/";
|
$return_url = session()->get(LOGINS['RETURN_URL']) ? session()->get(LOGINS['RETURN_URL']) : "/";
|
||||||
return redirect()->to($this->request->getVar(LOGINS['RETURN_URL']) ? $this->request->getVar(LOGINS['RETURN_URL']) : $return_url);
|
return redirect()->to($this->request->getVar(LOGINS['RETURN_URL']) ? $this->request->getVar(LOGINS['RETURN_URL']) : $return_url);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user