Jelajahi Sumber

wesmiler ECY 画画交易平台

APPLE 3 tahun lalu
induk
melakukan
cdd5c9ba9a
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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();