server: Add an option to force reset the admin password

This commit is contained in:
Valentin Tolmer
2023-12-21 13:54:46 +01:00
committed by nitnelave
parent 9ac96e8c6e
commit ff0ea51121
4 changed files with 28 additions and 0 deletions

View File

@@ -89,6 +89,10 @@ pub struct RunOpts {
#[clap(short, long, env = "LLDAP_DATABASE_URL")]
pub database_url: Option<String>,
/// Force admin password reset to the config value.
#[clap(short, long, env = "LLDAP_FORCE_LADP_USER_PASS_RESET")]
pub force_ldap_user_pass_reset: Option<bool>,
#[clap(flatten)]
pub smtp_opts: SmtpOpts,