mailer/src/models/WelcomeMail.ts
2021-03-03 18:10:08 +01:00

16 lines
311 B
TypeScript

import { IsEmail, IsNotEmpty, IsString } from 'class-validator';
/**
* Simple welcome mail request class for validation and easier handling.
*/
export class WelcomeMail {
@IsString()
@IsEmail()
@IsNotEmpty()
address: string;
@IsString()
@IsNotEmpty()
selfserviceToken: string;
}