feat: user can change login password

feat: user can change transaction password
wip : Admin feature rights -InProgress
This commit is contained in:
2025-09-02 12:41:39 +05:30
parent cb22b926f8
commit 9f6c2f9cc1
11 changed files with 181 additions and 13 deletions

View File

@@ -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' });