feat: ship native boss android console
This commit is contained in:
17
src/app/auth/forgot-password/page.tsx
Normal file
17
src/app/auth/forgot-password/page.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { AppShell, AuthForm, PageNav, StatusBar } from "@/components/app-ui";
|
||||
import { redirectIfAuthenticated } from "@/lib/boss-auth";
|
||||
|
||||
export default async function ForgotPasswordPage() {
|
||||
await redirectIfAuthenticated();
|
||||
return (
|
||||
<AppShell bottomNav={false}>
|
||||
<StatusBar />
|
||||
<PageNav title="忘记密码" backHref="/auth/login" />
|
||||
<AuthForm
|
||||
mode="forgot-password"
|
||||
title="重置登录密码"
|
||||
description="通过验证码确认身份后,才能设置新的登录密码。验证码带有效期,使用后会立即失效。"
|
||||
/>
|
||||
</AppShell>
|
||||
);
|
||||
}
|
||||
26
src/app/auth/help/page.tsx
Normal file
26
src/app/auth/help/page.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
import { AppShell, PageNav, StatusBar } from "@/components/app-ui";
|
||||
|
||||
export default function AuthHelpPage() {
|
||||
return (
|
||||
<AppShell bottomNav={false}>
|
||||
<StatusBar />
|
||||
<PageNav title="登录帮助" backHref="/auth/login" />
|
||||
<div className="space-y-3 px-[18px] pb-6">
|
||||
<div className="rounded-2xl border border-[#E5E5EA] bg-white px-4 py-4 text-[13px] leading-6 text-[#57606A]">
|
||||
登录链路当前已临时切到免验证模式。点击登录会直接进入系统,账号密码和验证码输入暂时不作为拦截条件。
|
||||
</div>
|
||||
<div className="rounded-2xl border border-[#E5E5EA] bg-white px-4 py-4 text-[13px] leading-6 text-[#57606A]">
|
||||
默认管理员账号:`17600003315`
|
||||
<br />
|
||||
默认测试密码:`boss123456`
|
||||
<br />
|
||||
当前账号角色:`最高管理员`
|
||||
</div>
|
||||
<div className="rounded-2xl bg-[#EAF7F0] px-4 py-4 text-[13px] leading-6 text-[#215B39]">
|
||||
当前仍保留固定验证码 `000000` 的 MVP 能力,但登录页已经临时放开成“一键进入”。
|
||||
等后续重新收口认证链路时,再恢复账号密码 / 验证码校验。
|
||||
</div>
|
||||
</div>
|
||||
</AppShell>
|
||||
);
|
||||
}
|
||||
17
src/app/auth/login/page.tsx
Normal file
17
src/app/auth/login/page.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { AppShell, AuthForm, PageNav, StatusBar } from "@/components/app-ui";
|
||||
import { redirectIfAuthenticated } from "@/lib/boss-auth";
|
||||
|
||||
export default async function LoginPage() {
|
||||
await redirectIfAuthenticated();
|
||||
return (
|
||||
<AppShell bottomNav={false}>
|
||||
<StatusBar />
|
||||
<PageNav title="登录" rightLabel="帮助" rightHref="/auth/help" />
|
||||
<AuthForm
|
||||
mode="login"
|
||||
title="登录 Codex 协同"
|
||||
description="当前已临时切到免验证登录模式,点击登录会直接进入会话首页。账号密码和验证码输入暂时不作为拦截条件。"
|
||||
/>
|
||||
</AppShell>
|
||||
);
|
||||
}
|
||||
17
src/app/auth/register/page.tsx
Normal file
17
src/app/auth/register/page.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { AppShell, AuthForm, PageNav, StatusBar } from "@/components/app-ui";
|
||||
import { redirectIfAuthenticated } from "@/lib/boss-auth";
|
||||
|
||||
export default async function RegisterPage() {
|
||||
await redirectIfAuthenticated();
|
||||
return (
|
||||
<AppShell bottomNav={false}>
|
||||
<StatusBar />
|
||||
<PageNav title="注册" backHref="/auth/login" />
|
||||
<AuthForm
|
||||
mode="register"
|
||||
title="创建账号"
|
||||
description="注册后可绑定自己的 Mac、Windows 或云端 Codex 节点。注册仍通过验证码确认身份,验证码会校验发送频率并在使用后失效。"
|
||||
/>
|
||||
</AppShell>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user