feat: Disable the "Forgot your password?" button when the mail server setup is incomplete (#11653)

This commit is contained in:
Shun Miyazawa
2024-12-18 16:20:41 +09:00
committed by GitHub
parent 2961fa0e08
commit f7415e1ca4
4 changed files with 13 additions and 3 deletions

View File

@@ -163,7 +163,7 @@ const NormalForm = () => {
</div>}
</>}
{systemFeatures.enable_email_password_login && authType === 'password' && <>
<MailAndPasswordAuth isInvite={isInviteLink} allowRegistration={systemFeatures.is_allow_register} />
<MailAndPasswordAuth isInvite={isInviteLink} isEmailSetup={systemFeatures.is_email_setup} allowRegistration={systemFeatures.is_allow_register} />
{systemFeatures.enable_email_code_login && <div className='cursor-pointer py-1 text-center' onClick={() => { updateAuthType('code') }}>
<span className='system-xs-medium text-components-button-secondary-accent-text'>{t('login.useVerificationCode')}</span>
</div>}