fix: removed the temp phone number that was added for testing
This commit is contained in:
@@ -148,7 +148,6 @@ async function sendForSetPassword(req, res) {
|
|||||||
// if present then get his phone number from CBS
|
// if present then get his phone number from CBS
|
||||||
const userDetails = await customerController.getDetails(customerNo);
|
const userDetails = await customerController.getDetails(customerNo);
|
||||||
const singleUserDetail = userDetails[0];
|
const singleUserDetail = userDetails[0];
|
||||||
singleUserDetail.mobileno = '7004774978';
|
|
||||||
if (!singleUserDetail?.mobileno)
|
if (!singleUserDetail?.mobileno)
|
||||||
return res.status(400).json({ error: 'USER_PHONE_NOT_FOUND' });
|
return res.status(400).json({ error: 'USER_PHONE_NOT_FOUND' });
|
||||||
|
|
||||||
@@ -182,7 +181,6 @@ async function verifyForSetPassword(req, res) {
|
|||||||
const userDetails = await customerController.getDetails(customerNo);
|
const userDetails = await customerController.getDetails(customerNo);
|
||||||
// temp check
|
// temp check
|
||||||
const singleUserDetail = userDetails[0];
|
const singleUserDetail = userDetails[0];
|
||||||
singleUserDetail.mobileno = '7004774978';
|
|
||||||
if (!singleUserDetail?.mobileno)
|
if (!singleUserDetail?.mobileno)
|
||||||
return res.status(400).json({ error: 'USER_PHONE_NOT_FOUND' });
|
return res.status(400).json({ error: 'USER_PHONE_NOT_FOUND' });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user