mirror of
https://github.com/moparisthebest/Conversations
synced 2025-01-04 10:18:07 -05:00
Don't allow user to register domain only jids
This commit is contained in:
parent
8a467e33dd
commit
afbe727b17
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user