Update: 2026-06-12 20:40:40

This commit is contained in:
Hamza-Ayed
2026-06-12 20:40:40 +03:00
parent 305ae01d52
commit f907212c57
294 changed files with 3592 additions and 3581 deletions

View File

@@ -55,9 +55,11 @@ class OtpVerificationController extends GetxController {
isLoading.value = true;
try {
final response = await CRUD().post(
link: '${AppLink.server}/auth/token_passenger/send_otp.php',
link: '${AppLink.server}/auth/otp/request.php',
payload: {
'receiver': phone,
'context': 'token_change',
'user_type': 'passenger',
// 'device_token': deviceToken,
},
);
@@ -81,10 +83,12 @@ class OtpVerificationController extends GetxController {
try {
String fingerPrint = await DeviceHelper.getDeviceFingerprint();
final response = await CRUD().post(
link: '${AppLink.server}/auth/token_passenger/verify_otp.php',
link: '${AppLink.server}/auth/otp/verify.php',
payload: {
'phone_number': phone,
'otp': otpCode.value,
'token_code': otpCode.value,
'context': 'token_change',
'user_type': 'passenger',
'token': box.read(BoxName.tokenFCM).toString(),
'fingerPrint': fingerPrint.toString(),
},