feat: Implement DNS management with dedicated models, repositories, requests, controllers, and services, while refactoring authentication by removing Passport and Sanctum.
This commit is contained in:
@@ -720,7 +720,9 @@ class CustomerController extends Controller
|
||||
if (!$customer) {
|
||||
return back()->withErrors('Invalid request');
|
||||
}
|
||||
Auth::guard('users')->login($customer);
|
||||
// TODO: impersonation feature needs redesign for JWT — session login does not work with JWT guard
|
||||
// This is a legacy Livewire admin feature; will be removed when portal-admin migration is complete
|
||||
Auth::guard('client')->login($customer);
|
||||
|
||||
session()->put('admin_login_for_customer', true);
|
||||
|
||||
@@ -728,7 +730,7 @@ class CustomerController extends Controller
|
||||
}
|
||||
public function LogoutWithCustomer()
|
||||
{
|
||||
Auth::guard('users')->logout();
|
||||
Auth::guard('client')->logout();
|
||||
return redirect()->route('customer.index');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user