|
@@ -26,6 +26,7 @@
|
|
|
#import "PwdPopupView.h"
|
|
#import "PwdPopupView.h"
|
|
|
#import "QuizSetViewController.h"
|
|
#import "QuizSetViewController.h"
|
|
|
#import "TempPwViewController.h"
|
|
#import "TempPwViewController.h"
|
|
|
|
|
+#import "SettingsNumChangeViewController.h"
|
|
|
|
|
|
|
|
//#import "MobilesOverViewController.h"
|
|
//#import "MobilesOverViewController.h"
|
|
|
//#import "InvitationListViewController.h"
|
|
//#import "InvitationListViewController.h"
|
|
@@ -276,13 +277,13 @@ ID / PW Input Box Text Color
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- [self actionAfterLogin];
|
|
|
|
|
|
|
+ [self gotoMainView];
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//퀴즈 설정 메뉴 dismiss 시
|
|
//퀴즈 설정 메뉴 dismiss 시
|
|
|
- (void)dismissQuizView {
|
|
- (void)dismissQuizView {
|
|
|
- [self actionAfterInvitaion];
|
|
|
|
|
|
|
+ [self gotoMainView];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//홈그룹 체크 및 대시보드 이동
|
|
//홈그룹 체크 및 대시보드 이동
|
|
@@ -296,11 +297,12 @@ ID / PW Input Box Text Color
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if ([[JDFacade facade].loginUser.invitationsCount integerValue] > 0) {
|
|
if ([[JDFacade facade].loginUser.invitationsCount integerValue] > 0) {
|
|
|
- [self actionForInvitation];
|
|
|
|
|
|
|
+ [[JDFacade facade] loadInvitationView];
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- //임시 비밀번호 체크 후 이동
|
|
|
|
|
|
|
+ //로그인 성공 후
|
|
|
|
|
+ //1. 임시 비밀번호 발급 Y인 경우 체크 후 이동
|
|
|
if ([JDFacade facade].loginUser.tempPasswordYn && [[JDFacade facade].loginUser.tempPasswordYn boolValue]) {
|
|
if ([JDFacade facade].loginUser.tempPasswordYn && [[JDFacade facade].loginUser.tempPasswordYn boolValue]) {
|
|
|
|
|
|
|
|
TempPwViewController *vc = (TempPwViewController *)[CommonUtil instantiateViewControllerWithIdentifier:@"TempPwSetViewController" storyboardName:@"SignUp"];
|
|
TempPwViewController *vc = (TempPwViewController *)[CommonUtil instantiateViewControllerWithIdentifier:@"TempPwSetViewController" storyboardName:@"SignUp"];
|
|
@@ -308,21 +310,42 @@ ID / PW Input Box Text Color
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- [self actionAfterInvitaion];
|
|
|
|
|
|
|
+
|
|
|
|
|
+ //2.휴대폰 번호 유효성 체크후 이동
|
|
|
|
|
+ if ([JDFacade facade].loginUser.phoneAuthYn && ![[JDFacade facade].loginUser.phoneAuthYn boolValue]) {
|
|
|
|
|
+
|
|
|
|
|
+ [self precessPhoneAuth];
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ [self gotoMainView];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-//초대알림 화면으로 이동
|
|
|
|
|
-- (void)actionForInvitation {
|
|
|
|
|
- [[JDFacade facade] loadInvitationView];
|
|
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
-//초대화면 액션이 종료된 후,
|
|
|
|
|
-- (void)actionAfterInvitaion {
|
|
|
|
|
-
|
|
|
|
|
- //메인으로 이동
|
|
|
|
|
- [self gotoMainView];
|
|
|
|
|
|
|
+- (void)precessPhoneAuth {
|
|
|
|
|
+
|
|
|
|
|
+ [[JDFacade facade] confirmTitle:@"알림"
|
|
|
|
|
+ message:@"현재 사용 중인 휴대폰 번호로 계정 정보를 업데이트 하세요. 휴대폰 번호를 재등록 하지 않으면 비밀번호 찾기를 할 수 없습니다."
|
|
|
|
|
+ btnOKLabel:@"지금"
|
|
|
|
|
+ btnCancelLabel:@"나중에"
|
|
|
|
|
+ completion:^(CustomAlertView *alertView, NSInteger buttonIndex) {
|
|
|
|
|
+
|
|
|
|
|
+ if (buttonIndex == 0) {
|
|
|
|
|
+
|
|
|
|
|
+ SettingsNumChangeViewController *vc = (SettingsNumChangeViewController *)[CommonUtil instantiateViewControllerWithIdentifier:@"SettingsNumChangeViewController" storyboardName:@"Settings"];
|
|
|
|
|
+ vc.isPresente = YES;
|
|
|
|
|
+ vc.moveToMain = YES;
|
|
|
|
|
+ [self presentViewController:vc animated:YES completion:nil];
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ else{
|
|
|
|
|
+
|
|
|
|
|
+ [self gotoMainView];
|
|
|
|
|
+ }
|
|
|
|
|
+ }];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
//새로운 단말 인증 필요 - 화면 이동
|
|
//새로운 단말 인증 필요 - 화면 이동
|
|
|
- (void)actionForNeedsRegisteringNewDevice:(NSString *)nickname {
|
|
- (void)actionForNeedsRegisteringNewDevice:(NSString *)nickname {
|
|
|
|
|
|