차량 모니터 PWA 인증 쿠키 유지
This commit is contained in:
1 parent
27f3f085de
commit
8c14d55d4d
2 files changed
+7
-2
No files matched your search
+6
-1
@@ -1000,7 +1000,12 @@ function car_monitor_issue_pwa_cookie_if_requested(): void
|
||||
|
||||
require_once $commonAuth;
|
||||
if (function_exists('custom_issue_auth_cookie')) {
|
||||
custom_issue_auth_cookie(false);
|
||||
if (function_exists('custom_has_auth_cookie') && custom_has_auth_cookie()) {
|
||||
header('Location: /car/monitor.php', true, 302);
|
||||
exit;
|
||||
}
|
||||
$isAdmin = function_exists('custom_is_site_admin') && custom_is_site_admin();
|
||||
custom_issue_auth_cookie($isAdmin);
|
||||
}
|
||||
|
||||
header('Location: /car/monitor.php', true, 302);
|
||||
|
||||
Reference in new issue
Block a user