diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/api.php | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/include/api.php b/include/api.php index 50a46dadc..6eede68f4 100644 --- a/include/api.php +++ b/include/api.php @@ -437,11 +437,6 @@ require_once('include/items.php'); function api_client_register(&$a,$type) { - // This currently isn't providing the correct authentication flow. - - if(! local_channel()) - goaway(z_root() . '/login'); - $ret = array(); $key = random_string(16); $secret = random_string(16); @@ -460,12 +455,7 @@ require_once('include/items.php'); dbesc($name), dbesc($redirect), dbesc($icon), - intval(api_user()) - ); - $r = q("INSERT INTO xperm (xp_client, xp_channel, xp_perm) VALUES ('%s', %d, '%s') ", - dbesc($key), - intval(api_user()), - dbesc('all') + intval(0) ); $ret['client_id'] = $key; |