Update GPS.Auth.js
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user