corebasic 1.0.174 → 1.0.175
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/libs/auth.js +4 -0
- package/package.json +1 -1
package/libs/auth.js
CHANGED
|
@@ -71,6 +71,10 @@ async function attemptLogin(req, res) {
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
async function sendOtp(mob, otp, app, hash) {
|
|
74
|
+
if (process.env.LOGIN_OTP_DISABLE) {
|
|
75
|
+
console.log(otp);
|
|
76
|
+
return true
|
|
77
|
+
}
|
|
74
78
|
try {
|
|
75
79
|
if (app && hash)
|
|
76
80
|
app = encodeURIComponent(`${app} (#${hash})`) // Of the form '<app> (#<hash>)' for better readability. Note: Axios works with SlypBusiness%20(%23<HASH>) but Curl requires SlypBusiness%20%28%23<HASH>%29
|