From 8ed4663e539d9c2ea58aaad02a1fc2896956f6b6 Mon Sep 17 00:00:00 2001 From: vnugent Date: Fri, 7 Jun 2024 15:43:48 -0400 Subject: fix: invalid chars in status cookie name --- ci/config-templates/Essentials.Accounts-template.json | 2 +- front-end/.env | 2 +- front-end/Taskfile.yaml | 2 ++ 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 -- cgit