Merge branch 'branch-jagad' into 'main'

Update LoginController.php

See merge request fiqhpratama1/xpendify!14
This commit is contained in:
Jagad Raya
2025-01-04 07:15:04 +00:00
@@ -77,6 +77,7 @@ class LoginController extends Controller
// Determine the intended redirect URL // Determine the intended redirect URL
$redirectTo = session()->pull('url.intended', $this->redirectTo()); $redirectTo = session()->pull('url.intended', $this->redirectTo());
session()->put('redirect_url', $redirectTo);
// Attempt to login // Attempt to login
if (Auth::guard('admin')->attempt(['email' => $request->email, 'password' => $request->password], $request->remember)) { if (Auth::guard('admin')->attempt(['email' => $request->email, 'password' => $request->password], $request->remember)) {