mirror of
https://github.com/v2board/v2board.git
synced 2025-01-27 16:39:08 +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)) {
|
if ((int)config('v2board.email_verify', 0)) {
|
||||||
Cache::forget($redisKey);
|
Cache::forget($redisKey);
|
||||||
}
|
}
|
||||||
|
$request->session()->put('email', $user->email);
|
||||||
|
$request->session()->put('id', $user->id);
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'data' => true
|
'data' => true
|
||||||
]);
|
]);
|
||||||
|
Loading…
Reference in New Issue
Block a user