fix: Add X-header for EMandate.
wip: add message template
This commit is contained in:
@@ -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' });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user