fix issue 14802: disable self-sigup interface when using ldap authent… (#15280)

* fix issue 14802: disable self-sigup interface when using ldap authentication provider

* Update SignInPage.tsx

---------

Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com>
This commit is contained in:
Thiago Pires 2024-03-03 13:58:15 -03:00 committed by GitHub
parent f2b1622c0f
commit 2e8f3f4b23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -268,13 +268,14 @@ const SignInPage = () => {
</div> </div>
</div> </div>
)} )}
<div className="mt-8" onClick={onClickForgotPassword}> {(!isAuthProviderLDAP) && (
<Typography.Link underline data-testid="forgot-password"> <div className="mt-8" onClick={onClickForgotPassword}>
{t('label.forgot-password')} <Typography.Link underline data-testid="forgot-password">
</Typography.Link> {t('label.forgot-password')}
</div> </Typography.Link>
</div>
{(authConfig?.enableSelfSignup || isAuthProviderLDAP) && ( )}
{(authConfig?.enableSelfSignup) && (!isAuthProviderLDAP) && (
<> <>
<Divider className="w-min-0 mt-8 mb-12 justify-center"> <Divider className="w-min-0 mt-8 mb-12 justify-center">
<Typography.Text className="text-sm" type="secondary"> <Typography.Text className="text-sm" type="secondary">