Added email address verification

This commit is contained in:
Nicolai Ort 2021-03-02 18:19:07 +01:00
parent 7445223f1e
commit 9b5c0b8f06

View File

@ -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;