Added reset mail request model
This commit is contained in:
parent
9ce86ebef7
commit
5812a485ee
|
@ -0,0 +1,15 @@
|
|||
import { IsNotEmpty, IsString } from 'class-validator';
|
||||
|
||||
/**
|
||||
* Simple reset mail request class for validation and easier handling.
|
||||
*/
|
||||
export class ResetMail {
|
||||
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
toAddress: string;
|
||||
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
resetLink: string;
|
||||
}
|
Loading…
Reference in New Issue