2023-05-21 18:15:04 +00:00
|
|
|
<?php
|
|
|
|
namespace Misuzu;
|
|
|
|
|
|
|
|
if(!isset($userInfoReal) || !$authToken->hasImpersonatedUserId() || !CSRF::validateRequest()) {
|
|
|
|
url_redirect('index');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2023-08-02 22:12:47 +00:00
|
|
|
$impUserId = $authToken->getImpersonatedUserId();
|
2023-05-21 18:15:04 +00:00
|
|
|
$authToken->removeImpersonatedUserId();
|
|
|
|
$authToken->applyCookie();
|
|
|
|
|
|
|
|
url_redirect(
|
|
|
|
$impUserId > 0 ? 'manage-user' : 'index',
|
|
|
|
['user' => $impUserId]
|
|
|
|
);
|