feat: user can change login password
feat: user can change transaction password wip : Admin feature rights -InProgress
This commit is contained in:
@@ -40,6 +40,9 @@ async function SendOtp(req, res) {
|
||||
case 'FORGOT_PASSWORD':
|
||||
message = templates.FORGOT_PASSWORD(otp);
|
||||
break;
|
||||
case 'REGISTRATION':
|
||||
message = templates.REGISTRATION(otp);
|
||||
break;
|
||||
default:
|
||||
return res.status(400).json({ error: 'Invalid OTP type' });
|
||||
}
|
||||
@@ -71,7 +74,7 @@ async function SendOtp(req, res) {
|
||||
// Verify OTP
|
||||
async function VerifyOtp(req, res) {
|
||||
const { mobileNumber } = req.query;
|
||||
const {otp} =req.body
|
||||
const { otp } = req.body
|
||||
|
||||
if (!mobileNumber || !otp) {
|
||||
return res.status(400).json({ error: 'Phone number and OTP are required' });
|
||||
|
||||
Reference in New Issue
Block a user