Update: 2026-06-29 00:07:33

This commit is contained in:
Hamza-Ayed
2026-06-29 00:07:33 +03:00
parent 24da2bc7ca
commit d695a4e812
15 changed files with 190 additions and 60 deletions

View File

@@ -22,6 +22,12 @@ class LoginController extends GetxController {
final FlutterSecureStorage storage = const FlutterSecureStorage();
void login() async {
final emailStr = email.text.trim();
final detectedCountry = AppLink.detectCountryFromPhone(emailStr);
if (detectedCountry.isNotEmpty) {
await box.write(BoxName.countryCode, detectedCountry);
}
// Ensure fingerprint is ready
String fingerprint = box.read(BoxName.fingerPrint) ?? '';
if (fingerprint.isEmpty) {