|
|
@@ -486,6 +486,14 @@ class User extends Frontend
|
|
|
$this->error($this->auth->getError(), null, ['token' => $this->request->token()]);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ $code=input('code');
|
|
|
+ if(empty($code))
|
|
|
+ {
|
|
|
+ $code='';
|
|
|
+ }
|
|
|
+ $this->view->assign('code',$code);
|
|
|
+
|
|
|
//判断来源
|
|
|
$referer = $this->request->server('HTTP_REFERER');
|
|
|
if ((strtolower(parse_url($referer, PHP_URL_HOST)) == strtolower($this->request->host()))
|