Commit 43b58abe authored by Alex Wenckus's avatar Alex Wenckus Committed by alex

Switched from username to jid for consistency

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6154 b35dd754-fafc-0310-a699-88a17e54d16e
parent ec0d520f
...@@ -18,6 +18,7 @@ import org.jivesoftware.wildfire.auth.UnauthorizedException; ...@@ -18,6 +18,7 @@ import org.jivesoftware.wildfire.auth.UnauthorizedException;
import org.dom4j.Element; import org.dom4j.Element;
import org.xmpp.forms.DataForm; import org.xmpp.forms.DataForm;
import org.xmpp.forms.FormField; import org.xmpp.forms.FormField;
import org.xmpp.packet.JID;
import java.util.List; import java.util.List;
import java.util.Arrays; import java.util.Arrays;
...@@ -48,12 +49,12 @@ public class AuthenticateUser extends AdHocCommand { ...@@ -48,12 +49,12 @@ public class AuthenticateUser extends AdHocCommand {
note.setText("Users are read only. Changing password is not allowed."); note.setText("Users are read only. Changing password is not allowed.");
return; return;
} }
String account = data.getData().get("username").get(0); JID account = new JID(data.getData().get("accountjid").get(0));
String password = data.getData().get("password").get(0); String password = data.getData().get("password").get(0);
// Get requested user // Get requested user
User user; User user;
try { try {
user = UserManager.getInstance().getUser(account); user = UserManager.getInstance().getUser(account.getNode());
} }
catch (UserNotFoundException e) { catch (UserNotFoundException e) {
// User not found // User not found
......
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