Only include JWT in login flows when configured.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2026-03-11 10:29:27 +00:00
parent 3ceeb8655f
commit 02ee1a55a0

View File

@@ -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(),