mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-22 15:30:19 +00:00
Merge pull request #856 from MrPetovan/task/two-factor-authentication
[windowsphonepush] Move Authentication::setAuthenticatedSessionForUser to Session::setAuthenticatedForUser
This commit is contained in:
commit
2394700e29
1 changed files with 2 additions and 2 deletions
|
@ -29,11 +29,11 @@
|
|||
use Friendica\App;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Content\Text\HTML;
|
||||
use Friendica\Core\Authentication;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\Session;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Model\User;
|
||||
|
@ -473,7 +473,7 @@ function windowsphonepush_login(App $a)
|
|||
die('This api requires login');
|
||||
}
|
||||
|
||||
Authentication::setAuthenticatedSessionForUser($record);
|
||||
Session::setAuthenticatedForUser($a, $record);
|
||||
$_SESSION["allow_api"] = true;
|
||||
Hook::callAll('logged_in', $a->user);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue