File tree 2 files changed +4
-0
lines changed
Coding_iOS/Controllers/MeSetting
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 11
11
#import " TPKeyboardAvoidingTableView.h"
12
12
#import " Coding_NetAPIManager.h"
13
13
#import " Login.h"
14
+ #import " Ease_2FA.h"
14
15
15
16
@interface SettingEmailViewController ()<UITableViewDataSource, UITableViewDelegate>
16
17
@property (strong , nonatomic ) TPKeyboardAvoidingTableView *myTableView;
@@ -55,6 +56,7 @@ - (void)refresh2FA{
55
56
[[Coding_NetAPIManager sharedManager ] get_is2FAOpenBlock: ^(BOOL data, NSError *error) {
56
57
if (!error) {
57
58
weakSelf.is2FAOpen = data;
59
+ weakSelf.two_factor_code = data? [OTPListViewController otpCodeWithGK: [Login curLoginUser ].global_key]: @" " ;
58
60
[weakSelf.myTableView reloadData ];
59
61
}
60
62
}];
Original file line number Diff line number Diff line change 12
12
#import " Coding_NetAPIManager.h"
13
13
#import " Login.h"
14
14
#import " CountryCodeListViewController.h"
15
+ #import " Ease_2FA.h"
15
16
16
17
@interface SettingPhoneViewController ()<UITableViewDataSource, UITableViewDelegate>
17
18
@property (strong , nonatomic ) TPKeyboardAvoidingTableView *myTableView;
@@ -53,6 +54,7 @@ - (void)viewDidLoad {
53
54
[[Coding_NetAPIManager sharedManager ] request_VerifyTypeWithBlock: ^(VerifyType type, NSError *error) {
54
55
if (!error) {
55
56
self.verifyType = type;
57
+ self.verifyStr = type == VerifyTypeTotp? [OTPListViewController otpCodeWithGK: [Login curLoginUser ].global_key]: @" " ;
56
58
[self .myTableView reloadData ];
57
59
}
58
60
}];
You can’t perform that action at this time.
0 commit comments