opt register auto login

This commit is contained in:
Tokumeikoi 2020-02-09 18:21:58 +08:00
parent e9229781bc
commit 13bc683faf

View File

@ -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
]);