Open erikn69 opened 4 months ago
When quietLogout doesn't exists, take returns false, but session keeps impersonated_by, this causes the app to behave as if it is being impersonated to another user when in reality that is not the case When quietLogin doesn't exists, take returns false but current user already be logout, and no user is logged in https://github.com/404labfr/laravel-impersonate/blob/d8ab69f05daab4117b313e11ca007fbf3199a1ab/src/Services/ImpersonateManager.php#L116-L125 https://github.com/404labfr/laravel-impersonate/blob/d8ab69f05daab4117b313e11ca007fbf3199a1ab/src/Services/ImpersonateManager.php#L65-L68
quietLogout
take
impersonated_by
quietLogin
When
quietLogout
doesn't exists,take
returns false, but session keepsimpersonated_by
, this causes the app to behave as if it is being impersonated to another user when in reality that is not the case WhenquietLogin
doesn't exists,take
returns false but current user already be logout, and no user is logged in https://github.com/404labfr/laravel-impersonate/blob/d8ab69f05daab4117b313e11ca007fbf3199a1ab/src/Services/ImpersonateManager.php#L116-L125 https://github.com/404labfr/laravel-impersonate/blob/d8ab69f05daab4117b313e11ca007fbf3199a1ab/src/Services/ImpersonateManager.php#L65-L68