aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-06-07 15:43:48 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2024-06-07 15:43:48 -0400
commit8ed4663e539d9c2ea58aaad02a1fc2896956f6b6 (patch)
tree1096bba241834211a25f7895db21e1a8d581ea17
parent9d1df65d99732a68b4fe96dcc75273442cbd322f (diff)
fix: invalid chars in status cookie name
-rw-r--r--ci/config-templates/Essentials.Accounts-template.json2
-rw-r--r--front-end/.env2
-rw-r--r--front-end/Taskfile.yaml2
3 files changed, 4 insertions, 2 deletions
diff --git a/ci/config-templates/Essentials.Accounts-template.json b/ci/config-templates/Essentials.Accounts-template.json
index 0f51e3d..4ca914c 100644
--- a/ci/config-templates/Essentials.Accounts-template.json
+++ b/ci/config-templates/Essentials.Accounts-template.json
@@ -63,7 +63,7 @@
//Path/domain for all security cookies
"cookie_domain": "",
"cookie_path": "/",
- "status_cookie_name": "cmn-li", //front-end cookie name must match to detect login status
+ "status_cookie_name": "cmnli", //front-end cookie name must match to detect login status
"otp_header_name": "X-Web-Token", //Front-end header name must match
"otp_time_diff_sec": 30,
"otp_key_size": 64,
diff --git a/front-end/.env b/front-end/.env
index ded10d3..08cb911 100644
--- a/front-end/.env
+++ b/front-end/.env
@@ -4,7 +4,7 @@ VITE_CORS_ENABLED=false
#The VNLib.Plugins.Essentials.Accounts plugin security header value
VITE_WEB_TOKEN_HEADER="X-Web-Token"
-VITE_LOGIN_COOKIE_ID="cmn-li"
+VITE_LOGIN_COOKIE_ID="cmnli"
VITE_PKI_ENABLED=true
diff --git a/front-end/Taskfile.yaml b/front-end/Taskfile.yaml
index d7d777b..8c7327a 100644
--- a/front-end/Taskfile.yaml
+++ b/front-end/Taskfile.yaml
@@ -13,6 +13,8 @@ tasks:
ci-build:
cmds:
+ - cmd: powershell rm dist/ -Recurse -Force
+ ignore_error: true
#build admin first
- cd ../lib/admin && npm install && npm run build
#install deps and run main build