Change TPIn #5
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user