mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-06 07:57:42 +02:00
BugFix Entering invalid email address into registration
gives error saying it's not supported #201
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
"auth_invalid_login_param" = "Incorrect username and/or password";
|
||||
"auth_invalid_user_name" = "User names may only contain letters, numbers, dots, hyphens and underscores";
|
||||
"auth_invalid_password" = "Password too short (min 6)";
|
||||
"auth_invalid_email" = "This doesn't look like a valid email address";
|
||||
"auth_missing_password" = "Missing password";
|
||||
"auth_missing_optional_email" = "If you don't specify an email address, you won't be able to reset your password. Are you sure?";
|
||||
"auth_missing_email" = "Missing email address";
|
||||
|
||||
@@ -191,6 +191,15 @@
|
||||
NSLog(@"[AuthInputsView] Invalid user name");
|
||||
errorMsg = NSLocalizedStringFromTable(@"auth_invalid_user_name", @"Vector", nil);
|
||||
}
|
||||
else if (self.emailTextField.text.length)
|
||||
{
|
||||
// Check validity of the non empty email
|
||||
if ([MXTools isEmailAddress:self.emailTextField.text] == NO)
|
||||
{
|
||||
NSLog(@"[AuthInputsView] Invalid email");
|
||||
errorMsg = NSLocalizedStringFromTable(@"auth_invalid_email", @"Vector", nil);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user