ecrs-auth-core 1.0.58 → 1.0.59

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.
@@ -24,8 +24,9 @@ let AuthController = class AuthController {
24
24
  }
25
25
  async login(body) {
26
26
  const user = await this.authService.validateUser(body.email, body.password);
27
- if (!user)
28
- throw new common_1.UnauthorizedException('Invalid credentials');
27
+ if (!user) {
28
+ throw new common_1.UnauthorizedException('Login failed: email or password not matched');
29
+ }
29
30
  const requestedModuleId = Number(body.moduleId);
30
31
  if (!Number.isFinite(requestedModuleId)) {
31
32
  throw new common_1.UnauthorizedException('You are not authorized to access this module');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecrs-auth-core",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
4
4
  "description": "Centralized authentication and authorization module for ECRS apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",