From 66b2b1ee3976fbfda3702d886e5966a7d07695bc Mon Sep 17 00:00:00 2001 From: ericko-cyber Date: Thu, 22 May 2025 15:29:22 +0700 Subject: [PATCH] Update RegisterController.php --- app/Http/Controllers/Auth/RegisterController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index 3cf3b7a..51d690c 100644 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -40,11 +40,9 @@ public function register(Request $request) 'role' => 'user', ]); - // Authenticate the new account - Auth::login($account); // Redirect to homepage - return redirect('home'); + return redirect('login'); } }