Commit 27931d3e authored by JC Brand's avatar JC Brand

controlbox: Add JID validation to the login form

parent 631ac610
......@@ -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');
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment