feat: Add support for registering a new account with an email address

This commit is contained in:
Ginger authored and Ellis Git committed 2026-03-31 02:20:59 +00:00
1 parent 717d319708
commit ef7ad6082c
4 files changed
+110 -21

No files matched your search

+14
View File
@@ -2477,6 +2477,20 @@ pub struct SmtpConfig {
/// - `Name <address@domain.org>` to specify a sender name
/// - `address@domain.org` to not use a name
pub sender: Mailbox,
/// Whether to require that users provide an email address when they
/// register.
///
/// default: false
#[serde(default)]
pub require_email_for_registration: bool,
/// Whether to require that users who register with a registration token
/// provide an email address.
///
/// default: false
#[serde(default)]
pub require_email_for_token_registration: bool,
}
const DEPRECATED_KEYS: &[&str] = &[