Skip to content

Commit 5161295

Browse files
committed
Fix new user registeration.
1 parent 9b60cea commit 5161295

File tree

4 files changed

+1
-410
lines changed

4 files changed

+1
-410
lines changed
13 Bytes
Binary file not shown.

crates/auth-ui/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ async fn ui_login_handler(
144144
let html = auth::LoginTemplate {
145145
state: format!("{redirect_uri}\n{response_type}\n{pkce_code_challenge}"),
146146
alert: query.alert.as_deref().unwrap_or_default(),
147-
enable_registration: config.disable_password_auth,
147+
enable_registration: !config.disable_password_auth,
148148
oauth_providers: &config.oauth_providers,
149149
oauth_query_params: &oauth_query_params,
150150
}

crates/core/src/auth/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ pub(crate) mod tokens;
1717
pub(crate) mod util;
1818

1919
mod error;
20-
// mod ui;
2120

2221
pub use error::AuthError;
2322
pub use jwt::{JwtHelper, TokenClaims};

0 commit comments

Comments
 (0)