mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-07 10:14:35 +00:00
feat(web): add --disable-registration flag to disable user registration (#1881)
This commit is contained in:
@@ -109,6 +109,13 @@ struct Cli {
|
||||
help = t!("cli.api_host").to_string()
|
||||
)]
|
||||
api_host: Option<url::Url>,
|
||||
|
||||
#[arg(
|
||||
long,
|
||||
default_value = "false",
|
||||
help = t!("cli.disable_registration").to_string(),
|
||||
)]
|
||||
disable_registration: bool,
|
||||
}
|
||||
|
||||
impl LoggingConfigLoader for &Cli {
|
||||
@@ -212,6 +219,7 @@ async fn main() {
|
||||
mgr.clone(),
|
||||
db,
|
||||
web_router_restful,
|
||||
cli.disable_registration,
|
||||
)
|
||||
.await
|
||||
.unwrap()
|
||||
|
||||
Reference in New Issue
Block a user