feat : users are locked after three failed login attempts.

This commit is contained in:
2025-10-21 16:21:41 +05:30
parent b63860e22e
commit 75ebcf8407
2 changed files with 78 additions and 19 deletions

View File

@@ -105,7 +105,7 @@ async function SendOtp(req, res) {
// Call SMS API
const response = await axios.post(
'http://192.168.1.77:9999/api/SendtoMessage',
'http://localhost:9999/api/SendtoMessage',
{
mobileNumber,
stMessage: message,
@@ -171,7 +171,7 @@ async function sendForSetPassword(req, res) {
const otp = generateOTP(6);
const message = templates.CHANGE_LPWORD(otp);
const response = await axios.post(
'http://192.168.1.77:9999/api/SendtoMessage',
'http://localhost:9999/api/SendtoMessage',
{
mobileNumber,
stMessage: message,