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

This commit is contained in:
Ginger
2026-03-22 20:51:14 -04:00
committed by Ellis Git
parent 717d319708
commit ef7ad6082c
4 changed files with 110 additions and 21 deletions
+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] = &[