1
1
Fork 0

api: add 'allow_api' to user authenticated via oauth

This commit is contained in:
Fabrixxm 2012-12-27 10:20:51 -05:00
parent e189e6582a
commit b620b6e608

View file

@ -150,6 +150,7 @@ class FKOAuth1 extends OAuthServer {
$_SESSION['page_flags'] = $record['page-flags'];
$_SESSION['my_url'] = $a->get_baseurl() . '/profile/' . $record['nickname'];
$_SESSION['addr'] = $_SERVER['REMOTE_ADDR'];
$_SESSION["allow_api"] = true;
//notice( t("Welcome back ") . $record['username'] . EOL);
$a->user = $record;