Merge pull request #564 from fabrixxm/master
fix small bug to oauth authentication
This commit is contained in:
commit
d3d5557393
1 changed files with 1 additions and 0 deletions
|
@ -150,6 +150,7 @@ class FKOAuth1 extends OAuthServer {
|
||||||
$_SESSION['page_flags'] = $record['page-flags'];
|
$_SESSION['page_flags'] = $record['page-flags'];
|
||||||
$_SESSION['my_url'] = $a->get_baseurl() . '/profile/' . $record['nickname'];
|
$_SESSION['my_url'] = $a->get_baseurl() . '/profile/' . $record['nickname'];
|
||||||
$_SESSION['addr'] = $_SERVER['REMOTE_ADDR'];
|
$_SESSION['addr'] = $_SERVER['REMOTE_ADDR'];
|
||||||
|
$_SESSION["allow_api"] = true;
|
||||||
|
|
||||||
//notice( t("Welcome back ") . $record['username'] . EOL);
|
//notice( t("Welcome back ") . $record['username'] . EOL);
|
||||||
$a->user = $record;
|
$a->user = $record;
|
||||||
|
|
Loading…
Reference in a new issue