mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	update: add more auth meta
This commit is contained in:
		| @@ -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, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user