From 5b7f3f00967d88b981af97b87e40196b9b9568fd Mon Sep 17 00:00:00 2001 From: asif Date: Sat, 8 Nov 2025 20:10:35 +0530 Subject: [PATCH] Change TPIn #5 --- lib/features/profile/tpin/change_tpin_otp_screen.dart | 2 +- lib/features/profile/tpin/change_tpin_screen.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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, ), ), );