@adminforth/two-factors-auth 1.10.3 → 1.10.4

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/dist/index.js CHANGED
@@ -334,7 +334,7 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
334
334
  return { status: 'ok', allowedLogin: true };
335
335
  }
336
336
  else {
337
- return { error: 'Wrong or expired OTP code' };
337
+ return { error: 'Verification failed' };
338
338
  }
339
339
  }
340
340
  })
package/index.ts CHANGED
@@ -358,7 +358,7 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
358
358
  this.adminforth.auth.setAuthCookie({expireInDays: decoded.rememberMeDays, response, username:decoded.userName, pk:decoded.pk})
359
359
  return { status: 'ok', allowedLogin: true }
360
360
  } else {
361
- return {error: 'Wrong or expired OTP code'}
361
+ return {error: 'Verification failed'}
362
362
  }
363
363
  }
364
364
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/two-factors-auth",
3
- "version": "1.10.3",
3
+ "version": "1.10.4",
4
4
  "description": "AdminForth plugin for two factors authentication",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",