From 9d448d3012f17fc92dea838d4054190d4c9df89c Mon Sep 17 00:00:00 2001 From: Hanzo_dev <2002samudiojohan@gmail.com> Date: Sun, 1 Mar 2026 14:37:53 -0500 Subject: [PATCH] Remove Google Auth and restore simple email/password login flow --- frontend/src/components/auth/LoginForm.vue | 36 ------------------- frontend/src/components/auth/RegisterForm.vue | 36 ------------------- 2 files changed, 72 deletions(-) diff --git a/frontend/src/components/auth/LoginForm.vue b/frontend/src/components/auth/LoginForm.vue index b1da660..fdabf17 100644 --- a/frontend/src/components/auth/LoginForm.vue +++ b/frontend/src/components/auth/LoginForm.vue @@ -2,7 +2,6 @@ import { ref } from 'vue' import { useRouter } from 'vue-router' import { useAuthStore } from '@/stores/auth' -import { supabase } from '@/supabase' import { useI18n } from 'vue-i18n' const emit = defineEmits(['toggle']) @@ -46,47 +45,12 @@ const navigateByUserRole = (role: string) => { else router.push('/map') } -const handleGoogleLogin = async () => { - isLoading.value = true - errorMessage.value = '' - console.log('Iniciando Google Login...') - try { - const { error } = await supabase.auth.signInWithOAuth({ - provider: 'google', - options: { - redirectTo: window.location.origin - } - }) - if (error) throw error - // Se redirige automáticamente - } catch (error: any) { - console.error('Error Google Login:', error) - errorMessage.value = `Error Google: ${error.message || t('common.error')}` - } finally { - isLoading.value = false - } -}