diff --git a/lib/features/auth/bloc/auth_bloc.dart b/lib/features/auth/bloc/auth_bloc.dart index a04a217..b02c718 100644 --- a/lib/features/auth/bloc/auth_bloc.dart +++ b/lib/features/auth/bloc/auth_bloc.dart @@ -29,8 +29,6 @@ class AuthBloc extends Bloc { await _supabase.auth.signUp( email: event.email, password: event.password, - // Qui potresti passare il "Codice Negozio" nei data dell'utente - data: {'store_code': event.storeCode}, ); // Nota: Se Supabase richiede conferma email, l'utente non sarĂ  diff --git a/lib/features/auth/bloc/auth_events.dart b/lib/features/auth/bloc/auth_events.dart index 31cd776..15ddeba 100644 --- a/lib/features/auth/bloc/auth_events.dart +++ b/lib/features/auth/bloc/auth_events.dart @@ -12,13 +12,8 @@ class ToggleAuthMode extends AuthEvent {} // Passa da Login a Registrazione class LoginRequested extends AuthEvent { final String email; final String password; - final String? storeCode; - const LoginRequested({ - required this.email, - required this.password, - this.storeCode, - }); + const LoginRequested({required this.email, required this.password}); @override - List get props => [email, password, storeCode]; + List get props => [email, password]; }