Update GPS.Auth.js

This commit is contained in:
Mr Swift
2024-10-02 12:45:09 +03:30
parent 6ed4fb5f47
commit 5c507ab708
+2 -2
View File
@@ -56,7 +56,7 @@ module.exports.login_with_pass = [
})
// eslint-disable-next-line eqeqeq
if (user?.lastIP && user?.lastIP != req.ip) {
SMS([user.mobile_number], "test")
SMS([user.mobile_number], "کاربر گرامی، \n با دستگاه جدیدی به اکانت شما در آسان سرویس وارد شدند")
}
user.lastIP = req.ip
user.token = token
@@ -95,7 +95,7 @@ module.exports.login_with_otp = [
})
// eslint-disable-next-line eqeqeq
if (user?.lastIP && user?.lastIP != req.ip) {
SMS([user.mobile_number], "test")
SMS([user.mobile_number], "کاربر گرامی، \n با دستگاه جدیدی به اکانت شما در آسان سرویس وارد شدند")
}
user.otp = generateRandomDigits(6)
user.lastIP = req.ip