In Authelia, set remember me to true by default (probably)
I haven't tested it, because we have no test infrastructure. Deploy at your own risk
This commit is contained in:
parent
82caf96d36
commit
961be8c040
2 changed files with 17 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ config, ... }:
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
svc_domain = "auth.${config.mine.shared.settings.domain}";
|
svc_domain = "auth.${config.mine.shared.settings.domain}";
|
||||||
|
@ -10,6 +10,9 @@ let
|
||||||
in {
|
in {
|
||||||
services.authelia.instances.main = {
|
services.authelia.instances.main = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.authelia.overrideAttrs {
|
||||||
|
patches = [ ./remember_me_by_default.patch ];
|
||||||
|
};
|
||||||
|
|
||||||
environmentVariables.AUTHELIA_AUTHENTICATION_BACKEND_LDAP_PASSWORD_FILE = config.age.secrets.lldap-bind-user-pass.path;
|
environmentVariables.AUTHELIA_AUTHENTICATION_BACKEND_LDAP_PASSWORD_FILE = config.age.secrets.lldap-bind-user-pass.path;
|
||||||
environmentVariables.AUTHELIA_NOTIFIER_SMTP_PASSWORD_FILE = config.age.secrets.authelia-smtp-password.path;
|
environmentVariables.AUTHELIA_NOTIFIER_SMTP_PASSWORD_FILE = config.age.secrets.authelia-smtp-password.path;
|
||||||
|
|
13
machines/gerd/services/authelia/remember_me_by_default.patch
Normal file
13
machines/gerd/services/authelia/remember_me_by_default.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/web/src/views/LoginPortal/FirstFactor/FirstFactorForm.tsx b/web/src/views/LoginPortal/FirstFactor/FirstFactorForm.tsx
|
||||||
|
index 6bbeda992..d08ade4c3 100644
|
||||||
|
--- a/web/src/views/LoginPortal/FirstFactor/FirstFactorForm.tsx
|
||||||
|
+++ b/web/src/views/LoginPortal/FirstFactor/FirstFactorForm.tsx
|
||||||
|
@@ -42,7 +42,7 @@ const FirstFactorForm = function (props: Props) {
|
||||||
|
|
||||||
|
const loginChannel = useMemo(() => new BroadcastChannel<boolean>("login"), []);
|
||||||
|
|
||||||
|
- const [rememberMe, setRememberMe] = useState(false);
|
||||||
|
+ const [rememberMe, setRememberMe] = useState(true);
|
||||||
|
const [username, setUsername] = useState("");
|
||||||
|
const [usernameError, setUsernameError] = useState(false);
|
||||||
|
const [password, setPassword] = useState("");
|
Loading…
Add table
Add a link
Reference in a new issue