controlbox: Add JID validation to the login form

This commit is contained in:
JC Brand 2017-07-21 20:14:38 +02:00
parent 631ac6108f
commit 27931d3e37
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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');
}