mirror of
https://github.com/flarum/core.git
synced 2025-10-12 15:34:26 +02:00
- Use Symfony's Session component to work with sessions, instead of a custom database model. Separate the concept of access tokens from sessions once again. - Extract common session/remember cookie logic into SessionAuthenticator and Rememberer classes. - Extract AuthenticateUserTrait into a new AuthenticationResponseFactory class. - Fix forgot password process.
28 lines
497 B
PHP
28 lines
497 B
PHP
<?php
|
|
/*
|
|
* This file is part of Flarum.
|
|
*
|
|
* (c) Toby Zerner <toby.zerner@gmail.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Flarum\Event;
|
|
|
|
use Flarum\Core\User;
|
|
use Flarum\Http\AccessToken;
|
|
|
|
class UserLoggedIn
|
|
{
|
|
public $user;
|
|
|
|
public $token;
|
|
|
|
public function __construct(User $user, AccessToken $token)
|
|
{
|
|
$this->user = $user;
|
|
$this->token = $token;
|
|
}
|
|
}
|