로그인 차단 상태 런처 제한 표시
This commit is contained in:
@@ -72,6 +72,17 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
if (isset($_GET['session'])) {
|
||||
$denied = custom_login_denied_state();
|
||||
if (!empty($denied['denied'])) {
|
||||
custom_json([
|
||||
'authenticated' => false,
|
||||
'admin' => false,
|
||||
'loginBlocked' => true,
|
||||
'blockedType' => $denied['type'] ?? '',
|
||||
'blockedMessage' => $denied['message'] ?? '현재 로그인할 수 없는 상태입니다.',
|
||||
]);
|
||||
}
|
||||
|
||||
if (custom_is_site_admin()) {
|
||||
custom_issue_auth_cookie(true);
|
||||
custom_json(['authenticated' => true, 'admin' => true]);
|
||||
|
||||
Reference in New Issue
Block a user