mirror of
https://github.com/flarum/core.git
synced 2025-07-25 10:41:24 +02:00
- Make session token-based instead of user-based - Clear current session access tokens on logout - Introduce increment ID so we can show tokens to moderators in the future without exposing secrets - Switch to type classes to manage the different token types. New implementation fixes #2075 - Drop ability to customize lifetime per-token - Add developer access keys that don't expire. These must be created from the database for now - Add title in preparation for the developer token UI - Add IP and user agent logging - Delete all non-remember tokens in migration
18 lines
341 B
PHP
18 lines
341 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Flarum.
|
|
*
|
|
* For detailed copyright and license information, please view the
|
|
* LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Flarum\Http;
|
|
|
|
class SessionAccessToken extends AccessToken
|
|
{
|
|
public static $type = 'session';
|
|
|
|
protected static $lifetime = 60 * 60; // 1 hour
|
|
}
|