@tomei/sso 0.54.1 → 0.54.2

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomei/sso",
3
- "version": "0.54.1",
3
+ "version": "0.54.2",
4
4
  "description": "Tomei SSO Package",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -575,6 +575,7 @@ export class User extends UserBase {
575
575
  }
576
576
  } catch (error) {
577
577
  await this.incrementFailedLoginAttemptCount(dbTransaction);
578
+ throw new Error('Invalid credentials.');
578
579
  }
579
580
 
580
581
  // 2.1: Call alertNewLogin to check whether the ip used is new ip and alert the user if it's new.