Update RegisterController.php

This commit is contained in:
ericko-cyber 2025-05-22 15:29:22 +07:00
parent a950c924be
commit 66b2b1ee39
1 changed files with 1 additions and 3 deletions

View File

@ -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');
}
}