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 className="mt-8" onClick={onClickForgotPassword}>
<Typography.Link underline data-testid="forgot-password">
{t('label.forgot-password')}
</Typography.Link>
</div>
{(authConfig?.enableSelfSignup || isAuthProviderLDAP) && (
{(!isAuthProviderLDAP) && (
<div className="mt-8" onClick={onClickForgotPassword}>
<Typography.Link underline data-testid="forgot-password">
{t('label.forgot-password')}
</Typography.Link>
</div>
)}
{(authConfig?.enableSelfSignup) && (!isAuthProviderLDAP) && (
<>
<Divider className="w-min-0 mt-8 mb-12 justify-center">
<Typography.Text className="text-sm" type="secondary">