|
@@ -101,10 +101,14 @@ class Index extends Backend
|
|
|
if ($this->auth->autologin()) {
|
|
|
$this->redirect($url);
|
|
|
}
|
|
|
+
|
|
|
$background = Config::get('fastadmin.login_background');
|
|
|
$background = stripos($background, 'http') === 0 ? $background : config('site.cdnurl') . $background;
|
|
|
+ $config = \app\common\model\Config::getConfigByGroup('basic');
|
|
|
+ $googleVerify = isset($config['google_verify'])? $config['google_verify']['value'] : 0;
|
|
|
$this->view->assign('background', $background);
|
|
|
$this->view->assign('title', __('Login'));
|
|
|
+ $this->view->assign('google_verify',$googleVerify);
|
|
|
Hook::listen("admin_login_init", $this->request);
|
|
|
return $this->view->fetch();
|
|
|
}
|