feat(auth): unify mobile-first authentication flow
Some checks failed
Frontend CI/CD / build (push) Has been cancelled
Frontend CI/CD / deploy (push) Has been cancelled

This commit is contained in:
2026-06-23 02:07:14 +03:30
parent 1aa45beba4
commit 22b500dba5
18 changed files with 334 additions and 123 deletions

View File

@@ -37,7 +37,7 @@ export function LoginOtpPage() {
const [now, setNow] = useState(Date.now())
if (!state.login.mobile) {
return <Navigate to="/auth/login" replace />
return <Navigate to="/auth" replace />
}
useEffect(() => {
@@ -181,6 +181,9 @@ export function LoginOtpPage() {
<AuthPanel
title={t.login.loginOtpTitle}
description={t.login.sentCodeDesc(state.login.mobile)}
backTo="/auth/login/password"
backLabel={t.login.backToPasswordLogin}
step={{ current: 2, total: 2, label: t.login.stepLabel(2, 2) }}
alert={throttleAlert}
>
<form