placeholder for dynamic rego
This commit is contained in:
parent
1780ebafd3
commit
06eae98e53
@ -439,8 +439,8 @@ require_once('include/items.php');
|
||||
|
||||
// This currently isn't providing the correct authentication flow.
|
||||
|
||||
if(! api_user())
|
||||
return false;
|
||||
if(! local_channel())
|
||||
goaway(z_root() . '/login');
|
||||
|
||||
$ret = array();
|
||||
$key = random_string(16);
|
||||
|
@ -175,16 +175,8 @@ class FKOAuth1 extends OAuthServer {
|
||||
|
||||
if(strlen($a->channel['channel_timezone'])) {
|
||||
date_default_timezone_set($a->channel['channel_timezone']);
|
||||
// $a->timezone = $a->user['timezone'];
|
||||
}
|
||||
|
||||
// $r = q("SELECT * FROM `contact` WHERE `uid` = %s AND `self` = 1 LIMIT 1",
|
||||
// intval($_SESSION['uid']));
|
||||
// if(count($r)) {
|
||||
// $a->contact = $r[0];
|
||||
// $a->cid = $r[0]['id'];
|
||||
// $_SESSION['cid'] = $a->cid;
|
||||
// }
|
||||
// q("UPDATE `user` SET `login_date` = '%s' WHERE `uid` = %d LIMIT 1",
|
||||
// dbesc(datetime_convert()),
|
||||
// intval($_SESSION['uid'])
|
||||
|
Reference in New Issue
Block a user