fix: Add X-header for EMandate.

wip: add message template
This commit is contained in:
2025-10-29 15:34:54 +05:30
parent 654b4ddaf7
commit f807f62660
5 changed files with 17 additions and 2 deletions

View File

@@ -107,6 +107,13 @@ async function SendOtp(req, res) {
case 'USERNAME_SAVED':
message = templates.USERNAME_SAVED(PreferName);
break;
case 'TLIMIT':
otp = generateOTP(6);
message = templates.TLIMIT(otp);
break;
case 'TLIMIT_SET':
message = templates.TLIMIT_SET(amount);
break;
default:
return res.status(400).json({ error: 'Invalid OTP type' });
}