feat: add phone field to User model and update authentication flow

- Added phone field to User model in Prisma schema and generated types.
- Updated backend authentication to include phone as an additional field.
- Implemented phone input in the signup form with validation.
- Created a new SignupPage component for user registration.
- Updated routing to include signup path and redirect authenticated users.
- Modified login page to reference Playzer and added link to signup.
This commit is contained in:
Jose Selesan
2026-06-01 16:43:52 -03:00
parent 4d3867614d
commit 2aaa91444d
14 changed files with 352 additions and 9 deletions

View File

@@ -91,7 +91,7 @@ export function LoginPage({ redirectTo = '/' }: LoginPageProps) {
<section className="w-full max-w-sm rounded-xl border bg-card p-6 text-card-foreground shadow-sm">
<h1 className="mb-2 text-2xl font-semibold">Iniciar sesión</h1>
<p className="mb-4 text-sm text-muted-foreground">
Ingresá con tu cuenta para acceder a Home.
Ingresá con tu cuenta para acceder a Playzer.
</p>
<Button type="button" variant="outline" className="w-full" onClick={handleGoogleSignIn}>
@@ -161,6 +161,10 @@ export function LoginPage({ redirectTo = '/' }: LoginPageProps) {
<Link to="/reset-password" className="text-primary hover:underline">
¿Olvidaste tu contraseña?
</Link>
<span className="mx-3 text-muted-foreground">|</span>
<Link to="/signup" className="text-primary hover:underline">
Crear cuenta
</Link>
</p>
</section>
</main>