From b75c4cc0a7116c37cae182ddccc96dd58fc3a116 Mon Sep 17 00:00:00 2001
From: Hanzo_dev <2002samudiojohan@gmail.com>
Date: Mon, 23 Feb 2026 17:45:22 -0500
Subject: [PATCH] feat: add Google Sign-In to register form
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- Added 'Registrarse con Google' button at the top of the register form
- Same googleLogin endpoint as login — backend auto-creates account if new user
- Logs analytics event sign_up with method:'google'
- Redirects to /map (or role-based route) immediately after registration
- Divider 'o con correo' separates Google from the manual form
- Identical button style to LoginForm for visual consistency
- Error message shown inline if Google auth fails
---
frontend/src/components/auth/RegisterForm.vue | 106 +++++++++++++++++-
1 file changed, 105 insertions(+), 1 deletion(-)
diff --git a/frontend/src/components/auth/RegisterForm.vue b/frontend/src/components/auth/RegisterForm.vue
index 8e43864..5f3048a 100644
--- a/frontend/src/components/auth/RegisterForm.vue
+++ b/frontend/src/components/auth/RegisterForm.vue
@@ -1,10 +1,16 @@
@@ -50,7 +85,26 @@ const handleRegister = async () => {
-