add migrate page

This commit is contained in:
Ren Amamiya
2023-07-10 13:39:53 +07:00
parent df409afeed
commit 4e36b2d902
6 changed files with 225 additions and 2 deletions

View File

@@ -13,6 +13,10 @@ export function Protected({ children }: { children: ReactNode }) {
return <Navigate to="/auth/welcome" replace />;
}
if (status === 'success' && account && account.privkey.length > 35) {
return <Navigate to="/auth/migrate" replace />;
}
if (status === 'success' && account && !password) {
return <Navigate to="/auth/unlock" replace />;
}