mirror of
https://github.com/friendica/friendica
synced 2025-04-29 23:44:22 +02:00
Merge pull request #7907 from nupplaphil/task/reduce_app_deps
Cleanup Session/Authentication
This commit is contained in:
commit
6e4a428c73
32 changed files with 8791 additions and 7936 deletions
|
@ -5,6 +5,7 @@
|
|||
namespace Friendica\Network;
|
||||
|
||||
use Friendica\BaseObject;
|
||||
use Friendica\App\Authentication;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Session;
|
||||
use Friendica\Database\DBA;
|
||||
|
@ -45,6 +46,8 @@ class FKOAuth1 extends OAuthServer
|
|||
die('This api requires login');
|
||||
}
|
||||
|
||||
Session::setAuthenticatedForUser($a, $record, true);
|
||||
/** @var Authentication $authentication */
|
||||
$authentication = BaseObject::getClass(Authentication::class);
|
||||
$authentication->setForUser($a, $record, true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue