fix: Forbid removing emails if they're required to register

This commit is contained in:
Ginger committed 2026-04-23 13:17:48 -04:00
1 parent 8171e3d614
commit 567d809efe
5 files changed
+30 -4

No files matched your search

+3
View File
@@ -2516,6 +2516,9 @@ pub struct SmtpConfig {
/// Whether to require that users provide an email address when they
/// register.
///
/// If either this option or `require_email_for_token_registration` are set,
/// users will not be allowed to remove their email address.
///
/// default: false
#[serde(default)]
pub require_email_for_registration: bool,