From 46e1d627f01ca2aac22e30a85f040599f29ac919 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 31 May 2021 16:30:18 +0200 Subject: [PATCH] feat: add new variable authelia_auth_backend_disable_reset_password --- defaults/main.yml | 2 ++ templates/conf/authelia.yml.j2 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index fe38268..c0c168d 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -30,6 +30,8 @@ authelia_totp_issuer: "{{ authelia_portal_url | urlsplit('hostname') }}" authelia_totp_period: 30 authelia_totp_skew: 1 +authelia_auth_backend_disable_reset_password: False + # @var authelia_auth_backend:description: > # Set authentication backend. Available options are `local|ldap`. All `authelia_auth_ldap_` variables will only work # while the LDAP auth backend is enabled. diff --git a/templates/conf/authelia.yml.j2 b/templates/conf/authelia.yml.j2 index 1b88d4f..f0a6ebc 100644 --- a/templates/conf/authelia.yml.j2 +++ b/templates/conf/authelia.yml.j2 @@ -25,7 +25,7 @@ totp: skew: {{ authelia_totp_skew }} authentication_backend: - disable_reset_password: false + disable_reset_password: {{ authelia_auth_backend_disable_reset_password | bool | lower }} refresh_interval: 5m {% if authelia_auth_backend == "ldap" %}