Update: 2026-06-27 04:21:17
This commit is contained in:
@@ -102,6 +102,13 @@ class LoginDriverController extends GetxController {
|
||||
// }
|
||||
|
||||
isPhoneVerified() async {
|
||||
// If the phone is already verified locally and we have a driver ID, skip the API check
|
||||
// This prevents asking for OTP again if the user restarts the app during registration.
|
||||
if (box.read(BoxName.phoneVerified) == '1' && box.read(BoxName.driverID) != null) {
|
||||
Get.offAll(() => RegistrationView());
|
||||
return;
|
||||
}
|
||||
|
||||
var res = await CRUD().post(
|
||||
link: AppLink.isPhoneVerified,
|
||||
payload: {'phone_number': box.read(BoxName.phoneDriver)});
|
||||
|
||||
Reference in New Issue
Block a user