Added email address verification
This commit is contained in:
parent
7445223f1e
commit
9b5c0b8f06
@ -1,4 +1,4 @@
|
||||
import { IsNotEmpty, IsString } from 'class-validator';
|
||||
import { IsEmail, IsNotEmpty, IsString } from 'class-validator';
|
||||
|
||||
/**
|
||||
* Simple reset mail request class for validation and easier handling.
|
||||
@ -6,6 +6,7 @@ import { IsNotEmpty, IsString } from 'class-validator';
|
||||
export class ResetMail {
|
||||
|
||||
@IsString()
|
||||
@IsEmail()
|
||||
@IsNotEmpty()
|
||||
address: string;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user