mirror of
https://github.com/n08i40k/schedule-parser-next.git
synced 2025-12-06 09:47:46 +03:00
2.0.0
Я пока перечислю - умру. Надо научиться писать changelog постепенно.
This commit is contained in:
12
src/auth/dto/sign-in.dto.ts
Normal file
12
src/auth/dto/sign-in.dto.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { PickType } from "@nestjs/swagger";
|
||||
import { User } from "../../users/entity/user.entity";
|
||||
import { IsString } from "class-validator";
|
||||
|
||||
export class SignInDto extends PickType(User, ["username"]) {
|
||||
/**
|
||||
* Пароль в исходном виде
|
||||
* @example "my-password"
|
||||
*/
|
||||
@IsString()
|
||||
password: string;
|
||||
}
|
||||
Reference in New Issue
Block a user