Browse Source

api: add 'allow_api' to user authenticated via oauth

pull/564/head
Fabrixxm 8 years ago
parent
commit
b620b6e608
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      include/oauth.php

+ 1
- 0
include/oauth.php 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;


Loading…
Cancel
Save