[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.pull/1457/head^2
parent
f42b1ea229
commit
106c9032ad
|
@ -1,2 +1,4 @@
|
|||
HOST=authelia-frontend
|
||||
PUBLIC_URL=""
|
||||
REACT_APP_REMEMBER_ME=true
|
||||
REACT_APP_RESET_PASSWORD=true
|
|
@ -1 +1,3 @@
|
|||
PUBLIC_URL={{.Base}}
|
||||
REACT_APP_REMEMBER_ME={{.RememberMe}}
|
||||
REACT_APP_RESET_PASSWORD={{.ResetPassword}}
|
|
@ -25,7 +25,7 @@
|
|||
<title>Login - Authelia</title>
|
||||
</head>
|
||||
|
||||
<body data-basepath="%PUBLIC_URL%" data-rememberme="{{.RememberMe}}" data-disable-resetpassword="{{.ResetPassword}}">
|
||||
<body data-basepath="%PUBLIC_URL%" data-rememberme="%REACT_APP_REMEMBER_ME%" data-resetpassword="%REACT_APP_RESET_PASSWORD%">
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
<!--
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { configure } from 'enzyme';
|
||||
import Adapter from 'enzyme-adapter-react-16';
|
||||
document.body.setAttribute("data-basepath", "");
|
||||
document.body.setAttribute("data-rememberme", "false");
|
||||
document.body.setAttribute("data-disable-resetpassword", "false");
|
||||
document.body.setAttribute("data-rememberme", "true");
|
||||
document.body.setAttribute("data-resetpassword", "true");
|
||||
configure({ adapter: new Adapter() });
|
||||
|
|
|
@ -12,5 +12,5 @@ export function getRememberMe() {
|
|||
}
|
||||
|
||||
export function getResetPassword() {
|
||||
return getEmbeddedVariable("disable-resetpassword") === "true";
|
||||
return getEmbeddedVariable("resetpassword") === "true";
|
||||
}
|
Loading…
Reference in New Issue