Added Outlook OAuth warning

This commit is contained in:
M66B
2020-09-30 08:41:46 +02:00
parent 75da059829
commit 8d42316660
2 changed files with 8 additions and 0 deletions

View File

@@ -224,6 +224,13 @@ public class FragmentOAuth extends FragmentBase {
throw new IllegalArgumentException(getString(R.string.title_no_email));
if (!Helper.EMAIL_ADDRESS.matcher(email).matches())
throw new IllegalArgumentException(getString(R.string.title_email_invalid, email));
String e = email.toLowerCase();
if (e.contains("@outlook") ||
e.contains("@live") ||
e.contains("@hotmail") ||
e.contains("@msn"))
throw new IllegalArgumentException(getString(R.string.title_setup_office_remark));
}
etName.setEnabled(false);