add: progress authentication

This commit is contained in:
ilham
2021-12-06 09:12:52 +07:00
parent 5bbb650acd
commit 2b5abc7689
12 changed files with 154 additions and 40 deletions

View File

@@ -0,0 +1,9 @@
import { IsNotEmpty } from 'class-validator';
export class InputLoginDto {
@IsNotEmpty()
username: string;
@IsNotEmpty()
password: string;
}

View File

@@ -0,0 +1,9 @@
import { IsNotEmpty } from 'class-validator';
export class ResponseLoginDto {
@IsNotEmpty()
username: string;
@IsNotEmpty()
jwt: string;
}