Skip to content

Commit

Permalink
refactor(FE) : 이메일 인증 요청 방식 수정 (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunjh96 committed Feb 14, 2023
1 parent ddd74e6 commit 3849ab5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/apis/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const regiseterUser = async (data) => {
};

export const verificateEmail = async (data) => {
const response = await client.post('user/join/exist/email', data);
const response = await client.get(`user/join/exist/email?email=${data}`);

return response.data;
};
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/auth/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ const register = () => {
_.go(
fragment,
$.find('.verify-button'),
$.on('click', (e) => checkEmail(e, {email : userData.email})));
$.on('click', (e) => checkEmail(e, userData.email)));

// // prettier-ignore
// const sendVerificationCode = (fragment) =>
Expand Down

0 comments on commit 3849ab5

Please sign in to comment.