Welcome mails feature/2-welcome_mails #7

Merged
niggl merged 12 commits from feature/2-welcome_mails into dev 2021-03-04 15:51:13 +00:00
Showing only changes of commit 056b74ce22 - Show all commits

16
src/models/WelcomeMail.ts Normal file
View File

@ -0,0 +1,16 @@
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;
}