Explorar o código

wesmiler ECY 画画交易平台

APPLE %!s(int64=3) %!d(string=hai) anos
pai
achega
cdd5c9ba9a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();