Sync current dev state
This commit is contained in:
@@ -381,7 +381,8 @@ class VMiddleware
|
||||
$this->sendAPIResponse(['success' => false, 'message' => 'Authentication required'], 401);
|
||||
} else {
|
||||
$redirectUrl = urlencode($_SERVER['REQUEST_URI'] ?? '/');
|
||||
header("Location: /login?redirect={$redirectUrl}");
|
||||
if (strpos($_SERVER["REQUEST_URI"] ?? "", "/signin") === 0) { http_response_code(401); return; }
|
||||
header("Location: /signin?redirect={$redirectUrl}");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user