Change TPIn #5

This commit is contained in:
2025-11-08 20:10:35 +05:30
parent b5b6c6ed49
commit 5b7f3f0096
2 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@
// 1. Validate the OTP first. // 1. Validate the OTP first.
await _changePasswordService.validateOtp( await _changePasswordService.validateOtp(
otp: _otpController.text, otp: _otpController.text,
mobileNumber: '8981274001', mobileNumber: widget.mobileNumber,
); );
// 2. If OTP is valid, then call validateChangeTpin. // 2. If OTP is valid, then call validateChangeTpin.

View File

@@ -36,7 +36,7 @@ class _ChangeTpinScreenState extends State<ChangeTpinScreen> {
}); });
try { try {
// 1. Get OTP for TPIN change. // 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. // 2. Navigate to the OTP screen on success.
if (mounted) { if (mounted) {
@@ -45,7 +45,7 @@ class _ChangeTpinScreenState extends State<ChangeTpinScreen> {
builder: (context) => ChangeTpinOtpScreen( builder: (context) => ChangeTpinOtpScreen(
oldTpin: _oldTpinController.text, oldTpin: _oldTpinController.text,
newTpin: _newTpinController.text, newTpin: _newTpinController.text,
mobileNumber: '8981274001', mobileNumber: widget.mobileNumber,
), ),
), ),
); );