Skip to content

Commit

Permalink
✨[FEAT] : #139 찐막 회원가입 로직까지 적용한 이메일 회원가입 완성
Browse files Browse the repository at this point in the history
  • Loading branch information
comeheredart committed Oct 9, 2021
1 parent c45fdf2 commit 1983ace
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ChaRo-iOS/ChaRo-iOS/Source/Services/EmailJoinService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ struct EmailJoinService {
}

switch statusCode {
case 200...299: return .success("되엇군")
case 200...299: return .success("회원가입 성공 되엇군 !!!!!!!!")
case 400...499: return .requestErr("리퀘스트에러")
case 500: return .serverErr
default: return .networkFail
Expand Down
24 changes: 17 additions & 7 deletions ChaRo-iOS/ChaRo-iOS/Source/Views/VCs/SignScene/JoinVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,23 @@ class JoinVC: UIViewController {
}

contractView.nextButton.nextPageClosure = {
self.navigationController?.popViewController(animated: true)

self.postJoin(userEmail: "[email protected]",
password: "111111",
nickname: "아잉",
marketingPush: true,
marketingEmail: true,
image: UIImage(named: "icBackButton")!)
let userEmail = self.emailView.emailInputView.inputTextField?.text
let password = self.passwordView.passwordInputView.secondTextField.text
let nickname = self.profileView.nicknameView.inputTextField?.text
let image = self.profileView.profileView.profileImageView.image
let marketingPush = self.contractView.agreePushButton.Agreed
let marketingEmail = self.contractView.agreeEmailButton.Agreed


self.postJoin(userEmail: userEmail!,
password: password!,
nickname: nickname!,
marketingPush: marketingPush,
marketingEmail: marketingEmail,
image: (image ?? UIImage(named: "icProfile"))!)


}

contractView.stickyNextButton.nextPageClosure = {
Expand Down Expand Up @@ -318,6 +327,7 @@ class JoinVC: UIViewController {

case .success(let msg):
print("success", msg)
self.navigationController?.popViewController(animated: true)
case .requestErr(let msg):
print("requestERR", msg)
case .pathErr:
Expand Down

0 comments on commit 1983ace

Please sign in to comment.