mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-03 23:56:07 +02:00
Relaxed email address validation
This commit is contained in:
@@ -300,7 +300,7 @@ public class FragmentGmail extends FragmentBase {
|
||||
String password = args.getString("password");
|
||||
|
||||
// Safety checks
|
||||
if (!Patterns.EMAIL_ADDRESS.matcher(user).matches())
|
||||
if (!Helper.EMAIL_ADDRESS.matcher(user).matches())
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_email_invalid, user));
|
||||
if (TextUtils.isEmpty(password))
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_no_password));
|
||||
|
||||
Reference in New Issue
Block a user