From: Fabrixxm Date: Thu, 27 Dec 2012 15:20:51 +0000 (-0500) Subject: api: add 'allow_api' to user authenticated via oauth X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b620b6e60849e8ca7e4b54638a599c1cd2d44572;p=friendica.git api: add 'allow_api' to user authenticated via oauth --- diff --git a/include/oauth.php b/include/oauth.php index 28ac4428f0..de6f1e00db 100644 --- a/include/oauth.php +++ b/include/oauth.php @@ -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;