Skip to content

Commit

Permalink
수정: signup js url 수정, 회원가입 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahayana committed Nov 24, 2023
1 parent 54d6f16 commit ff26890
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion apps/account/services/user_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def create_single_user(
if img:
UserProfileImage.objects.create(user=user, img=img)

# TODO: Celery 비동기 처리
transaction.on_commit(lambda: send_email_verification.delay(user.id))

return user
Expand Down
10 changes: 7 additions & 3 deletions static/js/accounts/signup-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function signUp() {

let formData = new FormData();
formData.append("nickname", nickName);
formData.append("password2", password);
formData.append("password", password);
formData.append("email", email);
formData.append("img", profileImg);
formData.append("bio", bio);
Expand All @@ -49,7 +49,7 @@ function signUp() {

$.ajax({
type: 'POST',
url: '/accounts/signup/',
url: 'http://127.0.0.1:8000/account/v1/signup',
cache: false,
contentType: false,
processData: false,
Expand All @@ -69,7 +69,11 @@ function signUp() {
return;
}

},
error: function (response, status, error) {
console.log(error)
}

})
}

Expand All @@ -82,7 +86,7 @@ function checkDuplicated() {

$.ajax({
type: "GET",
url: `/accounts/signup/check/`,
url: `/account/v1/signup/check`,
data: { email: email },
success: function (response) {
// 서버에서 받은 response에서 duplicated 값이 true이면 중복확인 텍스트를 노출합니다.
Expand Down

0 comments on commit ff26890

Please sign in to comment.