From 106c9032ad528846ab8b0583c5135bef96280b80 Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Mon, 16 Nov 2020 20:58:29 +1100 Subject: [PATCH] [CI] Fix development workflow (#1465) Since merging #1135 and utilising Go templating to enable/disable the rememeber me and password reset features these have stopped working in the development workflow. During frontend development if someone wants to modify these values they should modify the `.env.development` file accordingly. --- web/.env.development | 4 +++- web/.env.production | 4 +++- web/public/index.html | 2 +- web/src/setupTests.js | 4 ++-- web/src/utils/Configuration.ts | 2 +- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/web/.env.development b/web/.env.development index faabb044c..dc50b8c79 100644 --- a/web/.env.development +++ b/web/.env.development @@ -1,2 +1,4 @@ HOST=authelia-frontend -PUBLIC_URL="" \ No newline at end of file +PUBLIC_URL="" +REACT_APP_REMEMBER_ME=true +REACT_APP_RESET_PASSWORD=true \ No newline at end of file diff --git a/web/.env.production b/web/.env.production index 206b820f5..1f6321076 100644 --- a/web/.env.production +++ b/web/.env.production @@ -1 +1,3 @@ -PUBLIC_URL={{.Base}} \ No newline at end of file +PUBLIC_URL={{.Base}} +REACT_APP_REMEMBER_ME={{.RememberMe}} +REACT_APP_RESET_PASSWORD={{.ResetPassword}} \ No newline at end of file diff --git a/web/public/index.html b/web/public/index.html index 4ae162c2b..16a5d184e 100644 --- a/web/public/index.html +++ b/web/public/index.html @@ -25,7 +25,7 @@ Login - Authelia - +