some more api work
This commit is contained in:
@@ -17,13 +17,13 @@ class Api extends \Zotlabs\Web\Controller {
|
|||||||
|
|
||||||
function get() {
|
function get() {
|
||||||
|
|
||||||
if(\App::$cmd=='api/oauth/authorize'){
|
if(\App::$cmd === 'api/oauth/authorize'){
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* api/oauth/authorize interact with the user. return a standard page
|
* api/oauth/authorize interact with the user. return a standard page
|
||||||
*/
|
*/
|
||||||
|
|
||||||
\App::$page['template'] = "minimal";
|
\App::$page['template'] = 'minimal';
|
||||||
|
|
||||||
// get consumer/client from request token
|
// get consumer/client from request token
|
||||||
try {
|
try {
|
||||||
@@ -43,7 +43,7 @@ class Api extends \Zotlabs\Web\Controller {
|
|||||||
$consumer = new OAuth1Consumer($app['client_id'], $app['pw'], $app['redirect_uri']);
|
$consumer = new OAuth1Consumer($app['client_id'], $app['pw'], $app['redirect_uri']);
|
||||||
|
|
||||||
$verifier = md5($app['secret'] . local_channel());
|
$verifier = md5($app['secret'] . local_channel());
|
||||||
set_config("oauth", $verifier, local_channel());
|
set_config('oauth', $verifier, local_channel());
|
||||||
|
|
||||||
|
|
||||||
if($consumer->callback_url != null) {
|
if($consumer->callback_url != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user