diff --git a/lib/features/profile/tpin/change_tpin_otp_screen.dart b/lib/features/profile/tpin/change_tpin_otp_screen.dart index c99759a..d4d8d66 100644 --- a/lib/features/profile/tpin/change_tpin_otp_screen.dart +++ b/lib/features/profile/tpin/change_tpin_otp_screen.dart @@ -41,7 +41,7 @@ // 1. Validate the OTP first. await _changePasswordService.validateOtp( otp: _otpController.text, - mobileNumber: '8981274001', + mobileNumber: widget.mobileNumber, ); // 2. If OTP is valid, then call validateChangeTpin. diff --git a/lib/features/profile/tpin/change_tpin_screen.dart b/lib/features/profile/tpin/change_tpin_screen.dart index f53ebea..850d361 100644 --- a/lib/features/profile/tpin/change_tpin_screen.dart +++ b/lib/features/profile/tpin/change_tpin_screen.dart @@ -36,7 +36,7 @@ class _ChangeTpinScreenState extends State { }); try { // 1. Get OTP for TPIN change. - await _changePasswordService.getOtpTpin(mobileNumber: '8981274001'); + await _changePasswordService.getOtpTpin(mobileNumber: widget.mobileNumber); // 2. Navigate to the OTP screen on success. if (mounted) { @@ -45,7 +45,7 @@ class _ChangeTpinScreenState extends State { builder: (context) => ChangeTpinOtpScreen( oldTpin: _oldTpinController.text, newTpin: _newTpinController.text, - mobileNumber: '8981274001', + mobileNumber: widget.mobileNumber, ), ), );