aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-27 17:30:36 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-27 17:30:36 -0700
commit11301d51a58d04843ba3056b4c9e92d59ced1334 (patch)
tree0c2351dd60b0c4b3b1d06544bbb44463c51ddcdf /include
parent5a889558aaddac325c880ede547eec39493c4fa8 (diff)
downloadvolse-hubzilla-11301d51a58d04843ba3056b4c9e92d59ced1334.tar.gz
volse-hubzilla-11301d51a58d04843ba3056b4c9e92d59ced1334.tar.bz2
volse-hubzilla-11301d51a58d04843ba3056b4c9e92d59ced1334.zip
some high-level stuff we may need for shareable menus. Also make the client register function do the right thing even though I refuse to make it work. If **you** want service federation with things like pumpio and openid connect, it's time for **you** to put your own skin in the game and quit treating project volunteers like excrement just because you can't get up off your lazy buttocks.
Diffstat (limited to 'include')
-rw-r--r--include/api.php12
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;