Sfoglia il codice sorgente

wesmiler ECY 画画交易平台

APPLE 3 anni fa
parent
commit
cdd5c9ba9a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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();