mirror of
https://github.com/moparisthebest/Conversations
synced 2025-01-06 03:08:03 -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();
|
mAccountJid.requestFocus();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (jid.isDomainJid()) {
|
||||||
|
mAccountJid.setError(getString(R.string.invalid_jid));
|
||||||
|
mAccountJid.requestFocus();
|
||||||
|
return;
|
||||||
|
}
|
||||||
final String password = mPassword.getText().toString();
|
final String password = mPassword.getText().toString();
|
||||||
final String passwordConfirm = mPasswordConfirm.getText().toString();
|
final String passwordConfirm = mPasswordConfirm.getText().toString();
|
||||||
if (registerNewAccount) {
|
if (registerNewAccount) {
|
||||||
|
Loading…
Reference in New Issue
Block a user