app: Fix password reset redirection (#513)

* Fix password reset redirection
* Add password reset enable flag
This commit is contained in:
Austin Alvarado
2023-03-30 09:47:41 -06:00
committed by GitHub
parent 88a9f8a97b
commit c4b8621e2a
4 changed files with 16 additions and 2 deletions

View File

@@ -132,6 +132,10 @@ pub enum SmtpEncryption {
#[derive(Debug, Parser, Clone)]
#[clap(next_help_heading = Some("SMTP"))]
pub struct SmtpOpts {
/// Enable password reset.
#[clap(long, env = "LLDAP_SMTP_OPTIONS__ENABLE_PASSWORD_RESET")]
pub smtp_enable_password_reset: Option<bool>,
/// Sender email address.
#[clap(long, env = "LLDAP_SMTP_OPTIONS__FROM")]
pub smtp_from: Option<Mailbox>,