|
|
|
|
@ -284,10 +284,14 @@ class AuthenticationViewModel extends ChangeNotifier {
|
|
|
|
|
|
|
|
|
|
// Validate based on selected country
|
|
|
|
|
if (selectedCountrySignup == CountryEnum.saudiArabia) {
|
|
|
|
|
if (!ValidationUtils.validateIqama(nationalIdController.text)) {
|
|
|
|
|
_nationalIdError = LocaleKeys.pleaseEnterAValidIqamaID.tr();
|
|
|
|
|
notifyListeners();
|
|
|
|
|
return false;
|
|
|
|
|
if (cleanedId.length == 10) {
|
|
|
|
|
if (!ValidationUtils.validateIqama(nationalIdController.text)) {
|
|
|
|
|
_nationalIdError = LocaleKeys.pleaseEnterAValidIqamaID.tr();
|
|
|
|
|
notifyListeners();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
} else if (selectedCountrySignup == CountryEnum.unitedArabEmirates) {
|
|
|
|
|
if (!ValidationUtils.validateUaeNationalId(nationalIdController.text)) {
|
|
|
|
|
|