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() =>
|
if list_idps && identity_providers.is_empty() =>
|
||||||
false,
|
false,
|
||||||
| LoginType::Password(_) => services.config.login_with_password,
|
| LoginType::Password(_) => services.config.login_with_password,
|
||||||
|
| LoginType::Jwt(_) => services.config.jwt.enable,
|
||||||
| _ => true,
|
| _ => true,
|
||||||
})
|
})
|
||||||
.collect(),
|
.collect(),
|
||||||
|
|||||||
Reference in New Issue
Block a user