Don't allow user to register domain only jids

This commit is contained in:
Sam Whited 2014-12-23 17:35:36 -05:00
parent 8a467e33dd
commit afbe727b17
1 changed files with 5 additions and 0 deletions

View File

@ -82,6 +82,11 @@ public class EditAccountActivity extends XmppActivity implements OnAccountUpdate
mAccountJid.requestFocus();
return;
}
if (jid.isDomainJid()) {
mAccountJid.setError(getString(R.string.invalid_jid));
mAccountJid.requestFocus();
return;
}
final String password = mPassword.getText().toString();
final String passwordConfirm = mPasswordConfirm.getText().toString();
if (registerNewAccount) {