This commit is contained in:
2025-12-03 16:48:25 +08:00
parent c1c4c85bd2
commit 91e2b047eb
3 changed files with 22 additions and 6 deletions

View File

@@ -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];