QuecManager v2.3.2 Release Candidate

This commit is contained in:
Russel Yasol
2025-09-07 18:36:18 +08:00
parent 64f06fc056
commit 08a1cd8d7b
88 changed files with 800 additions and 456 deletions

View File

@@ -1,8 +1,9 @@
#!/bin/sh
# Get token from Request Header Authorization
USER_TOKEN="${HTTP_AUTHORIZATION}"
# Remove token from file
sed -i -e "s/.*${USER_TOKEN}.*//g" /tmp/auth_success 2>/dev/null
HOST_DIR=$(pwd)
AUTH_RESPONSE=$(/bin/sh ${HOST_DIR}/cgi-bin/quecmanager/auth-token.sh removeToken "${HTTP_AUTHORIZATION}")
EXIT_CODE=$?
echo "Content-Type: application/json"
echo "Cache-Control: no-cache, no-store, must-revalidate"
@@ -12,4 +13,5 @@ echo ""
echo '{"state":"success", "message":"Logged out successfully"}'
echo $AUTH_RESPONSE
exit $EXIT_CODE