Skip to content

Commit 6646aee

Browse files
committed
regenerate token on register
1 parent 9e67e42 commit 6646aee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/Http/Controllers/Auth/RegisteredUserController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ public function store(Request $request): RedirectResponse
4646

4747
Auth::login($user);
4848

49+
$request->session()->regenerate();
50+
4951
return to_route('dashboard');
5052
}
5153
}

0 commit comments

Comments
 (0)