controlbox: Add JID validation to the login form
This commit is contained in:
parent
631ac6108f
commit
27931d3e37
@ -9,7 +9,7 @@
|
||||
|
||||
### New features and improvements
|
||||
- Add support for Emojis (either native, or via <a href="https://www.emojione.com/">Emojione</a>). [jcbrand]
|
||||
- Add JID validation to the contact add form and the occupant invite form. [jcbrand]
|
||||
- Add JID validation to the contact add form, the occupant invite form and the login form. [jcbrand]
|
||||
- #896 Consistently use `XMPP username` in user-facing text (instead of JID, Jabber ID etc.). [jcbrand]
|
||||
|
||||
### New configuration settings
|
||||
|
@ -423,7 +423,7 @@
|
||||
let jid = $jid_input.val(),
|
||||
errors = false;
|
||||
|
||||
if (!jid) {
|
||||
if (!jid || _.filter(jid.split('@')).length < 2) {
|
||||
errors = true;
|
||||
$jid_input.addClass('error');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user