Skip to content

Commit

Permalink
feat(#88) : 이메일 인증 번호 API 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
Jieun Kim committed Feb 6, 2024
1 parent 63a7ffe commit 95d2d44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controller/authController.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export const checkEmail = async(req, res, next) => {

await smtpTransport.sendMail(mailOptions);

return res.send(response(status.SUCCESS));
return res.send(response(status.SUCCESS, code));
} catch (err) {
console.log(err);
return res.send(errResponse(status.INTERNAL_SERVER_ERROR));
Expand Down Expand Up @@ -372,7 +372,7 @@ export const validPasswordCheck = (password) => {

// 랜덤 이메일 인증 번호 생성
export const generateRandomCode = () => {
var code = Math.floor(Math.random() * (999999 - 100000 + 1)) + 100000;
var code = Math.floor(Math.random() * (999999 - 111111 + 1)) + 111111;
return code;
};

Expand Down

0 comments on commit 95d2d44

Please sign in to comment.