[优化] 移除注册相关功能的代码和配置

This commit is contained in:
ryan
2026-05-25 16:01:10 +08:00
parent 7eee788720
commit 314f6fd3f4
11 changed files with 10 additions and 515 deletions
@@ -63,10 +63,6 @@ export function LoginForm() {
queryFn: getPublicStatus,
});
const canUsePasswordRegister =
(statusQuery.data?.register_enabled ?? false) &&
(statusQuery.data?.password_register_enabled ?? false);
const loginMutation = useMutation({
mutationFn: login,
onSuccess: (user) => {
@@ -166,17 +162,6 @@ export function LoginForm() {
>
{TEXT.forgotPassword}
</Link>
{canUsePasswordRegister ? (
<>
<span>|</span>
<Link
href="/register"
className="text-[var(--brand-primary)] transition hover:opacity-80"
>
{TEXT.register}
</Link>
</>
) : null}
</div>
</AppCard>
</PublicAuthGuard>