In Authelia, set remember me to true by default (probably) #7
2 changed files with 17 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, ... }:
|
||||
{ pkgs, config, ... }:
|
||||
|
||||
let
|
||||
svc_domain = "auth.${config.mine.shared.settings.domain}";
|
||||
|
@ -10,6 +10,9 @@ let
|
|||
in {
|
||||
services.authelia.instances.main = {
|
||||
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_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