added setting password feature fo migrated users

This commit is contained in:
2025-09-11 12:07:44 +05:30
parent cb3b34899b
commit a122882764
4 changed files with 165 additions and 36 deletions

View File

@@ -1,4 +1,3 @@
const express = require('express');
const otpController = require('../controllers/otp.controller');
@@ -10,4 +9,10 @@ router.post('/send', otpController.SendOtp);
// Verify OTP (GET request with query params ?mobileNumber=xxx&otp=123456)
router.post('/verify', otpController.VerifyOtp);
//send otp for setting password
router.get('/send/set-password', otpController.sendForSetPassword);
//verify otp for setting password
router.get('/verify/set-password', otpController.verifyForSetPassword);
module.exports = router;