account confirmation
This commit is contained in:
@@ -12,6 +12,7 @@ pub struct Config {
|
||||
pub asset_version: String,
|
||||
pub smtp: Option<crate::state::SmtpConfig>,
|
||||
pub registration_enabled: bool,
|
||||
pub account_confirmation_required: bool,
|
||||
pub frontend_log_level: String,
|
||||
}
|
||||
|
||||
@@ -57,6 +58,7 @@ impl Config {
|
||||
asset_version: env!("CARGO_PKG_VERSION").to_owned(),
|
||||
smtp,
|
||||
registration_enabled: env_bool("REGISTRATION_ENABLED", false)?,
|
||||
account_confirmation_required: env_bool("ACCOUNT_CONFIRMATION_REQUIRED", false)?,
|
||||
frontend_log_level: env_log_level("FRONTEND_LOG_LEVEL", "warn")?,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user