rez_core 2.0.12 → 2.0.13
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/module/user/controller/login.controller.js +1 -1
- package/dist/module/user/controller/login.controller.js.map +1 -1
- package/dist/module/user/service/login.service.d.ts +1 -1
- package/dist/module/user/service/login.service.js +2 -2
- package/dist/module/user/service/login.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/user/controller/login.controller.ts +2 -4
- package/src/module/user/service/login.service.ts +2 -7
package/package.json
CHANGED
|
@@ -18,13 +18,11 @@ export class LoginController {
|
|
|
18
18
|
constructor(private loginService: LoginService) {}
|
|
19
19
|
|
|
20
20
|
@Post('login')
|
|
21
|
-
|
|
22
21
|
async login(@Body() body, @Res() res: Response) {
|
|
23
|
-
const { email_id, password, appcode,organization_id} = body;
|
|
24
|
-
const result = await this.loginService.login(email_id, password, appcode
|
|
22
|
+
const { email_id, password, appcode, organization_id } = body;
|
|
23
|
+
const result = await this.loginService.login(email_id, password, appcode);
|
|
25
24
|
return res.status(HttpStatus.OK).json(result);
|
|
26
25
|
}
|
|
27
|
-
|
|
28
26
|
|
|
29
27
|
@UseGuards(JwtAuthGuard)
|
|
30
28
|
@Post('logout')
|
|
@@ -18,13 +18,8 @@ export class LoginService {
|
|
|
18
18
|
masterKey: string = this.configService.get('MASTER_KEY') || '';
|
|
19
19
|
masterIv: string = this.configService.get('MASTER_IV') || '';
|
|
20
20
|
|
|
21
|
-
async login(
|
|
22
|
-
email
|
|
23
|
-
password: string,
|
|
24
|
-
appcode: string,
|
|
25
|
-
organization_id,
|
|
26
|
-
) {
|
|
27
|
-
const user = await this.userService.findByEmailId(email, organization_id);
|
|
21
|
+
async login(email: string, password: string, appcode: string) {
|
|
22
|
+
const user = await this.userService.findByEmailId(email);
|
|
28
23
|
|
|
29
24
|
if (!user) {
|
|
30
25
|
return {
|