mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Отрефакторен компонент User\Component
Добавлен метод getActiveSession Добавлена логика для функции "Разлогинить всех" в форме смены пароля
This commit is contained in:
17
api/components/User/SessionIdClaim.php
Normal file
17
api/components/User/SessionIdClaim.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
namespace api\components\User;
|
||||
|
||||
use Emarref\Jwt\Claim\AbstractClaim;
|
||||
|
||||
class SessionIdClaim extends AbstractClaim {
|
||||
|
||||
const NAME = 'sid';
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function getName() {
|
||||
return self::NAME;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user