diff --git a/frontend/lib/features/auth/presentation/login_screen.dart b/frontend/lib/features/auth/presentation/login_screen.dart index a57dd45b..710e6698 100644 --- a/frontend/lib/features/auth/presentation/login_screen.dart +++ b/frontend/lib/features/auth/presentation/login_screen.dart @@ -120,6 +120,9 @@ class _LoginScreenState extends ConsumerState if (rawPhone.isEmpty) return; String phone = rawPhone.replaceAll(RegExp(r'[-\s]'), ''); + if (phone.startsWith('010')) { + phone = '+82${phone.substring(1)}'; // Convert 010 to +8210 + } debugPrint("[Auth] Initiating SMS Enchanted Link for: $phone"); try { @@ -378,7 +381,7 @@ class _LoginScreenState extends ConsumerState controller: _phoneController, decoration: const InputDecoration( labelText: "Phone Number", - hintText: "+82 10-1234-5678", + hintText: "010-1234-5678", border: OutlineInputBorder(), prefixIcon: Icon(Icons.phone_android), ),