changing credentias passing to designer index
This commit is contained in:
@@ -28,9 +28,13 @@ class Designer extends Controller
|
|||||||
$authCode = $this->getAuthorizationCode($client);
|
$authCode = $this->getAuthorizationCode($client);
|
||||||
|
|
||||||
$this->setVar('prj_uid', $proUid);
|
$this->setVar('prj_uid', $proUid);
|
||||||
$this->setVar('client_id', $client['CLIENT_ID']);
|
|
||||||
$this->setVar('secret', $client['CLIENT_SECRET']);
|
$credentials = array();
|
||||||
$this->setVar('authorization_code', $authCode);
|
$credentials['client_id'] = $client['CLIENT_ID'];
|
||||||
|
$credentials['secret'] = $client['CLIENT_SECRET'];
|
||||||
|
$credentials['authorization_code'] = $authCode;
|
||||||
|
|
||||||
|
$this->setVar('credentials', base64_encode(json_encode($credentials)));
|
||||||
$this->setView('designer/index');
|
$this->setView('designer/index');
|
||||||
$this->render();
|
$this->render();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -188,6 +188,14 @@ class Type
|
|||||||
return $name;
|
return $name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param integer $age {@type 1,2,,}
|
||||||
|
*/
|
||||||
|
function postInt($age='')
|
||||||
|
{
|
||||||
|
return '->'.$age;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class Author
|
class Author
|
||||||
|
|||||||
@@ -7,9 +7,7 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var prj_uid = "{$prj_uid}";
|
var prj_uid = "{$prj_uid}";
|
||||||
var client_id = "{$client_id}";
|
var credentials = "{$credentials}";
|
||||||
var secret = "{$secret}";
|
|
||||||
var authorization_code = "{$authorization_code}";
|
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="/lib/js/wz_jsgraphics.js"></script>
|
<script type="text/javascript" src="/lib/js/wz_jsgraphics.js"></script>
|
||||||
<script type="text/javascript" src="/lib/js/jquery-1.10.2.min.js"></script>
|
<script type="text/javascript" src="/lib/js/jquery-1.10.2.min.js"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user