mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update: add more auth meta
This commit is contained in:
parent
57ef51f5d1
commit
cc43ae5d38
@ -27,7 +27,9 @@ class AuthService
|
|||||||
'session' => $guid,
|
'session' => $guid,
|
||||||
], config('app.key'), 'HS256');
|
], config('app.key'), 'HS256');
|
||||||
self::addSession($this->user->id, $guid, [
|
self::addSession($this->user->id, $guid, [
|
||||||
'ip' => $request->ip()
|
'ip' => $request->ip(),
|
||||||
|
'login_at' => time(),
|
||||||
|
'ua' => $request->userAgent()
|
||||||
]);
|
]);
|
||||||
return [
|
return [
|
||||||
'token' => $this->user->token,
|
'token' => $this->user->token,
|
||||||
|
Loading…
Reference in New Issue
Block a user