🔒 style: Hide registration link when Self-Use Mode is enabled
• Add conditional rendering (`!status.self_use_mode_enabled`) to LoginForm • Suppress “Don't have an account? Register” CTA in self-hosted scenarios • Keeps UI clean and prevents unintended user sign-ups under self-use mode • No impact on regular multi-user deployments
This commit is contained in:
@@ -358,9 +358,19 @@ const LoginForm = () => {
|
|||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="mt-6 text-center text-sm">
|
{!status.self_use_mode_enabled && (
|
||||||
<Text>{t('没有账户?')} <Link to="/register" className="text-blue-600 hover:text-blue-800 font-medium">{t('注册')}</Link></Text>
|
<div className="mt-6 text-center text-sm">
|
||||||
</div>
|
<Text>
|
||||||
|
{t('没有账户?')}{' '}
|
||||||
|
<Link
|
||||||
|
to="/register"
|
||||||
|
className="text-blue-600 hover:text-blue-800 font-medium"
|
||||||
|
>
|
||||||
|
{t('注册')}
|
||||||
|
</Link>
|
||||||
|
</Text>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
@@ -453,9 +463,19 @@ const LoginForm = () => {
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<div className="mt-6 text-center text-sm">
|
{!status.self_use_mode_enabled && (
|
||||||
<Text>{t('没有账户?')} <Link to="/register" className="text-blue-600 hover:text-blue-800 font-medium">{t('注册')}</Link></Text>
|
<div className="mt-6 text-center text-sm">
|
||||||
</div>
|
<Text>
|
||||||
|
{t('没有账户?')}{' '}
|
||||||
|
<Link
|
||||||
|
to="/register"
|
||||||
|
className="text-blue-600 hover:text-blue-800 font-medium"
|
||||||
|
>
|
||||||
|
{t('注册')}
|
||||||
|
</Link>
|
||||||
|
</Text>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user