Преглед изворни кода

wesmiler ECY 画画交易平台

APPLE пре 3 година
родитељ
комит
cdd5c9ba9a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      application/cmgadm/controller/general/Googlecode.php

+ 1 - 1
application/cmgadm/controller/general/Googlecode.php

@@ -21,7 +21,7 @@ class Googlecode extends Backend
      */
     public function index(){
         $google = new \PHPGangsta_GoogleAuthenticator();
-        $admin = Admin::where(['id'=> $this->auth->id])->field('id,username,nickname,google_key')->find();
+        $admin = Admin::where(['id'=> $this->auth->id])->field('id,username,nickname,google_key,google_bind')->find();
         $googleKey = isset($admin['google_key'])? $admin['google_key'] : '';
         if(empty($googleKey)){
             $secret = $google->createSecret();