improve login and add migration script
This commit is contained in:
parent
1fce467571
commit
099ffb74a1
5 changed files with 106 additions and 9 deletions
7
src/dtos/LoginRequestDto.ts
Normal file
7
src/dtos/LoginRequestDto.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* Defines a login request
|
||||
*/
|
||||
export class LoginRequestDto {
|
||||
userName: string;
|
||||
password: string;
|
||||
}
|
||||
9
src/dtos/LoginResponseDto.ts
Normal file
9
src/dtos/LoginResponseDto.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { UserDto } from "./UserDto";
|
||||
|
||||
/**
|
||||
* Response to a successful login
|
||||
*/
|
||||
export class LoginResponseDto {
|
||||
userData: UserDto;
|
||||
token: string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue