mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
18 lines
350 B
TypeScript
18 lines
350 B
TypeScript
import { IsEmail, IsInt, IsString } from 'class-validator'
|
|
import { ArgsType, Field, Int } from 'type-graphql'
|
|
|
|
@ArgsType()
|
|
export class UnsecureLoginArgs {
|
|
@Field(() => String)
|
|
@IsEmail()
|
|
email: string
|
|
|
|
@Field(() => String)
|
|
@IsString()
|
|
password: string
|
|
|
|
@Field(() => Int, { nullable: true })
|
|
@IsInt()
|
|
publisherId?: number | null
|
|
}
|