1
0
forked from baron/baron-sso

전화번호 기본값 변경

This commit is contained in:
2026-01-16 09:56:02 +09:00
parent 5c79626518
commit ffd2a95903

View File

@@ -120,6 +120,9 @@ class _LoginScreenState extends ConsumerState<LoginScreen>
if (rawPhone.isEmpty) return; if (rawPhone.isEmpty) return;
String phone = rawPhone.replaceAll(RegExp(r'[-\s]'), ''); 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"); debugPrint("[Auth] Initiating SMS Enchanted Link for: $phone");
try { try {
@@ -378,7 +381,7 @@ class _LoginScreenState extends ConsumerState<LoginScreen>
controller: _phoneController, controller: _phoneController,
decoration: const InputDecoration( decoration: const InputDecoration(
labelText: "Phone Number", labelText: "Phone Number",
hintText: "+82 10-1234-5678", hintText: "010-1234-5678",
border: OutlineInputBorder(), border: OutlineInputBorder(),
prefixIcon: Icon(Icons.phone_android), prefixIcon: Icon(Icons.phone_android),
), ),