5
This commit is contained in:
@@ -259,11 +259,24 @@
|
||||
}
|
||||
|
||||
- (void)onTapSubmit {
|
||||
// 后续接入具体注册/登录逻辑
|
||||
KBLOG(@"onTapSubmit email=%@, password length=%zd",
|
||||
self.emailTextField.text,
|
||||
self.passwordTextField.text.length);
|
||||
// 校验基础表单后,进入邮箱验证码验证页
|
||||
NSString *email = [self.emailTextField.text ?: @"" stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
|
||||
NSString *pwd = self.passwordTextField.text ?: @"";
|
||||
NSString *repeat = self.repeatPasswordTextField.text ?: @"";
|
||||
|
||||
if (email.length == 0 || pwd.length == 0 || repeat.length == 0) {
|
||||
[KBHUD showInfo:KBLocalized(@"Please complete all fields")];
|
||||
return;
|
||||
}
|
||||
if (![pwd isEqualToString:repeat]) {
|
||||
[KBHUD showInfo:KBLocalized(@"The two passwords do not match")];
|
||||
return;
|
||||
}
|
||||
|
||||
KBLOG(@"onTapSubmit email=%@, password length=%zd", email, pwd.length);
|
||||
|
||||
KBRegistVerEmailVC *vc = [[KBRegistVerEmailVC alloc] init];
|
||||
vc.email = email;
|
||||
UINavigationController *nav = KB_CURRENT_NAV;
|
||||
if ([nav isKindOfClass:[BaseNavigationController class]]) {
|
||||
[(BaseNavigationController *)nav kb_pushViewControllerRemovingSameClass:vc animated:YES];
|
||||
|
||||
Reference in New Issue
Block a user