Commit e731e09e authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Accept usernames and autocomplete JID with server's domain. JM-1136

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10721 b35dd754-fafc-0310-a699-88a17e54d16e
parent b7294306
...@@ -54,9 +54,12 @@ ...@@ -54,9 +54,12 @@
// Handle an add // Handle an add
if (add) { if (add) {
// do validation // do validation
if (userJID == null || userJID.indexOf('@') == -1) { if (userJID == null) {
errors.put("userJID","userJID"); errors.put("userJID","userJID");
} }
else if (userJID.indexOf('@') == -1) {
userJID = webManager.getXMPPServer().createJID(userJID, null).toBareJID();
}
if (errors.size() == 0) { if (errors.size() == 0) {
try { try {
......
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