mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
opt register auto login
This commit is contained in:
parent
e9229781bc
commit
13bc683faf
@ -88,6 +88,8 @@ class AuthController extends Controller
|
||||
if ((int)config('v2board.email_verify', 0)) {
|
||||
Cache::forget($redisKey);
|
||||
}
|
||||
$request->session()->put('email', $user->email);
|
||||
$request->session()->put('id', $user->id);
|
||||
return response()->json([
|
||||
'data' => true
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user