-
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.
Merge pull request #255 from boostcampwm2023/feat/be/mailer
์ฌ์ฉ์ ์ด๋ฉ์ผ ์ธ์ฆ, ๋น๋ฐ๋ฒํธ ์ฌ์ค์ ์ถ๊ฐ
- Loading branch information
Showing
22 changed files
with
2,569 additions
and
150 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { MailerOptions } from '@nestjs-modules/mailer'; | ||
import { MAILER_PW, MAILER_USER } from 'src/constants'; | ||
|
||
export const MailerConfig: MailerOptions = { | ||
transport: { | ||
host: 'smtp.gmail.com', | ||
prot: 587, | ||
secure: false, | ||
auth: { | ||
user: MAILER_USER, | ||
pass: MAILER_PW, | ||
}, | ||
}, | ||
defaults: { | ||
from: '"PriceGuard" <[email protected]>', | ||
}, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsNotEmpty, IsString } from 'class-validator'; | ||
|
||
export class VerifyEmailDto { | ||
@ApiProperty({ | ||
example: '[email protected]', | ||
description: '์ธ์ฆ์ ์ํ ์ด๋ฉ์ผ', | ||
required: true, | ||
}) | ||
@IsString() | ||
@IsNotEmpty() | ||
email: string; | ||
|
||
@ApiProperty({ | ||
example: '345123', | ||
description: '์ธ์ฆ์ฝ๋', | ||
required: true, | ||
}) | ||
@IsString() | ||
verificationCode: string; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsNotEmpty, IsString } from 'class-validator'; | ||
|
||
export class UserEmailDto { | ||
@ApiProperty({ | ||
example: '[email protected]', | ||
description: '์ธ์ฆ์ ์ํ ์ด๋ฉ์ผ', | ||
required: true, | ||
}) | ||
@IsString() | ||
@IsNotEmpty() | ||
email: string; | ||
} |
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,13 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsNotEmpty, IsString } from 'class-validator'; | ||
|
||
export class UserPasswordDto { | ||
@ApiProperty({ | ||
example: '1q2w3e4r', | ||
description: '์ฌ์ฉ์ ๋น๋ฐ๋ฒํธ', | ||
required: true, | ||
}) | ||
@IsString() | ||
@IsNotEmpty() | ||
password: string; | ||
} |
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,36 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsEmail, IsString } from 'class-validator'; | ||
|
||
export class UserRegisterDto { | ||
@ApiProperty({ | ||
example: '[email protected]', | ||
description: '์ฌ์ฉ์ ์ด๋ฉ์ผ', | ||
required: true, | ||
}) | ||
@IsEmail() | ||
email: string; | ||
|
||
@ApiProperty({ | ||
example: '์ต๋ณ์ต', | ||
description: '์ฌ์ฉ์ ์ด๋ฆ', | ||
required: true, | ||
}) | ||
@IsString() | ||
userName: string; | ||
|
||
@ApiProperty({ | ||
example: '345123', | ||
description: '์ธ์ฆ์ฝ๋', | ||
required: true, | ||
}) | ||
@IsString() | ||
verificationCode: string; | ||
|
||
@ApiProperty({ | ||
example: '1q2w3e4r', | ||
description: '์ฌ์ฉ์ ๋น๋ฐ๋ฒํธ', | ||
required: true, | ||
}) | ||
@IsString() | ||
password: string; | ||
} |
Oops, something went wrong.