added setting password feature fo migrated users
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user