Only include JWT in login flows when configured.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -79,6 +79,7 @@ pub(crate) async fn get_login_types_route(
|
||||
if list_idps && identity_providers.is_empty() =>
|
||||
false,
|
||||
| LoginType::Password(_) => services.config.login_with_password,
|
||||
| LoginType::Jwt(_) => services.config.jwt.enable,
|
||||
| _ => true,
|
||||
})
|
||||
.collect(),
|
||||
|
||||
Reference in New Issue
Block a user