parent
e2237d34d3
commit
056b74ce22
16
src/models/WelcomeMail.ts
Normal file
16
src/models/WelcomeMail.ts
Normal 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;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user