corebasic 1.0.171 → 1.0.172

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.
Files changed (2) hide show
  1. package/libs/auth.js +1 -1
  2. package/package.json +1 -1
package/libs/auth.js CHANGED
@@ -38,7 +38,7 @@ async function attemptLogin(req, res) {
38
38
 
39
39
  let expiry = 300000
40
40
  let userMob = req.body.mob ?? req.body.phone
41
- let mob = userMob.endsWith('0123456789') ? '0123456789' : Utils.parseMob(userMob)
41
+ let mob = userMob.endsWith('123456789') ? '0123456789' : Utils.parseMob(userMob)
42
42
  let time = new Date().getTime()
43
43
  let collection = (req.body.app ? req.body.app + '.' : '') + "auth.login"
44
44
  let errMessage = {success: false, message: "Login Server Error"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corebasic",
3
3
  "type": "module",
4
- "version": "1.0.171",
4
+ "version": "1.0.172",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {