diff --git a/apps/api/src/modules/auth/auth.controller.ts b/apps/api/src/modules/auth/auth.controller.ts index b5c8a1f..5b1f097 100644 --- a/apps/api/src/modules/auth/auth.controller.ts +++ b/apps/api/src/modules/auth/auth.controller.ts @@ -3,7 +3,7 @@ import { globalConfig } from '@gh/config'; import { PrismaService, User as PrismaUser } from '@gh/prisma'; import { LoginDto } from '@gh/shared/dtos'; import { AuthKeys } from '@gh/shared/models'; -import { loggedMethod } from '@gh/shared/utils'; +import { loggedMethod, measureTime } from '@gh/shared/utils'; import { Body, Controller, Get, HttpCode, HttpStatus, Inject, Post, Req, Res, UnauthorizedException, UseGuards } from '@nestjs/common'; import { ConfigType } from '@nestjs/config'; import { ApiBody } from '@nestjs/swagger'; @@ -28,6 +28,7 @@ export class AuthController { @HttpCode(HttpStatus.OK) @ApiBody({ type: LoginDto }) @loggedMethod('Log in with user/password') + @measureTime() async login(@Body() user: LoginDto, @Res() res: Response) { const response = await this.authService.login(user as PrismaUser); diff --git a/apps/ui-e2e/src/poms/login.page.ts b/apps/ui-e2e/src/poms/login.page.ts index 440127b..628afaf 100644 --- a/apps/ui-e2e/src/poms/login.page.ts +++ b/apps/ui-e2e/src/poms/login.page.ts @@ -23,9 +23,9 @@ export class LoginPage { await this.page.goto('/login'); } - async fill(email: string, passord: string) { + async fill(email: string, password: string) { await this.email.fill(email); - await this.password.fill(passord); + await this.password.fill(password); } async login() { diff --git a/apps/ui/src/app/components/gh-users/gh-users.component.html b/apps/ui/src/app/components/gh-users/gh-users.component.html index 4619324..06e8b49 100644 --- a/apps/ui/src/app/components/gh-users/gh-users.component.html +++ b/apps/ui/src/app/components/gh-users/gh-users.component.html @@ -1,37 +1,39 @@