From a13f20a63f63044c72dd12e328fe7f4614307f40 Mon Sep 17 00:00:00 2001 From: Stefan Melmuk Date: Fri, 14 Mar 2025 06:23:02 +0100 Subject: [PATCH] clarify email_2fa_enforce_on_verified_invite --- .env.template | 2 +- src/config.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.template b/.env.template index 23d4fc29..974dafc1 100644 --- a/.env.template +++ b/.env.template @@ -487,7 +487,7 @@ ## Maximum attempts before an email token is reset and a new email will need to be sent. # EMAIL_ATTEMPTS_LIMIT=3 ## -## Setup email 2FA regardless of any organization policy +## Setup email 2FA on registration regardless of any organization policy # EMAIL_2FA_ENFORCE_ON_VERIFIED_INVITE=false ## Automatically setup email 2FA as fallback provider when needed # EMAIL_2FA_AUTO_FALLBACK=false diff --git a/src/config.rs b/src/config.rs index 2c0740d4..6da99fa3 100644 --- a/src/config.rs +++ b/src/config.rs @@ -735,7 +735,7 @@ make_config! { email_expiration_time: u64, true, def, 600; /// Maximum attempts |> Maximum attempts before an email token is reset and a new email will need to be sent email_attempts_limit: u64, true, def, 3; - /// Automatically enforce at login |> Setup email 2FA provider regardless of any organization policy + /// Setup email 2FA at signup |> Setup email 2FA provider on registration regardless of any organization policy email_2fa_enforce_on_verified_invite: bool, true, def, false; /// Auto-enable 2FA (Know the risks!) |> Automatically setup email 2FA as fallback provider when needed email_2fa_auto_fallback: bool, true, def, false;