Fix new user registeration.

This commit is contained in:
Sebastian Jeltsch
2025-09-24 12:27:56 +02:00
parent 9b60cea394
commit 5161295a38
4 changed files with 1 additions and 410 deletions

View File

@@ -144,7 +144,7 @@ async fn ui_login_handler(
let html = auth::LoginTemplate {
state: format!("{redirect_uri}\n{response_type}\n{pkce_code_challenge}"),
alert: query.alert.as_deref().unwrap_or_default(),
enable_registration: config.disable_password_auth,
enable_registration: !config.disable_password_auth,
oauth_providers: &config.oauth_providers,
oauth_query_params: &oauth_query_params,
}