fix(login): 始终显示注册入口

- 取消对 `openRegistration` 的显示限制,让未进入验证码流程时都能看到注册按钮。
This commit is contained in:
LanQin
2026-06-16 00:13:50 +08:00
parent f7e6165b72
commit b9e43f211d
+1 -1
View File
@@ -62,7 +62,7 @@ export function LoginPage() {
{login.isPending ? "登录中..." : challengeToken ? "验证登录" : "登录"}
</Button>
{challengeToken && <Button type="button" variant="ghost" className="w-full" onClick={() => setChallengeToken("")}></Button>}
{!challengeToken && publicSettings.data?.openRegistration && (
{!challengeToken && (
<Button type="button" variant="ghost" className="w-full" asChild>
<Link to="/register"></Link>
</Button>