forked from brocoders/nestjs-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48e484a
commit 9e180c9
Showing
7 changed files
with
285 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import { ApiPropertyOptional } from '@nestjs/swagger'; | ||
import { IsNotEmpty, IsOptional, MinLength } from 'class-validator'; | ||
import { IsEmail, IsNotEmpty, IsOptional, MinLength } from 'class-validator'; | ||
import { FileDto } from '../../files/dto/file.dto'; | ||
import { Transform } from 'class-transformer'; | ||
import { lowerCaseTransformer } from '../../utils/transformers/lower-case.transformer'; | ||
|
||
export class AuthUpdateDto { | ||
@ApiPropertyOptional({ type: () => FileDto }) | ||
|
@@ -17,6 +19,13 @@ export class AuthUpdateDto { | |
@IsNotEmpty({ message: 'mustBeNotEmpty' }) | ||
lastName?: string; | ||
|
||
@ApiPropertyOptional({ example: '[email protected]' }) | ||
@IsOptional() | ||
@IsNotEmpty() | ||
@IsEmail() | ||
@Transform(lowerCaseTransformer) | ||
email?: string; | ||
|
||
@ApiPropertyOptional() | ||
@IsOptional() | ||
@IsNotEmpty() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"text1": "Hey!", | ||
"text2": "Confirm your new email address.", | ||
"text3": "Simply click the big green button below to verify your email address." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale="> | ||
<title>{{title}}</title> | ||
</head> | ||
|
||
<body style="margin:0;font-family:arial"> | ||
<table style="border:0;width:100%"> | ||
<tr style="background:#eeeeee"> | ||
<td style="padding:20px;color:#808080;text-align:center;font-size:40px;font-weight:600"> | ||
{{app_name}} | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="padding:20px;color:#808080;font-size:16px;font-weight:100"> | ||
{{text1}}<br> | ||
{{text2}}<br> | ||
{{text3}} | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="text-align:center"> | ||
<a href="{{url}}" | ||
style="display:inline-block;padding:20px;background:#00838f;text-decoration:none;color:#ffffff">{{actionTitle}}</a> | ||
</td> | ||
</tr> | ||
</table> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters