25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-30 16:36:29 +01:00

Fix pattern match

This commit is contained in:
Badlop 2010-06-21 18:28:32 +02:00
parent b0b66be747
commit cd4c730b9c

View File

@ -1661,7 +1661,7 @@ set_form(From, Host, ?NS_ADMINL("change-user-password"), _Lang, XData) ->
set_form(From, Host, ?NS_ADMINL("get-user-lastlogin"), Lang, XData) ->
AccountString = get_value("accountjid", XData),
JID = exmpp_jid:parse(AccountString),
User = [_|_] = exmpp_jid:prep_node(JID),
User = exmpp_jid:prep_node(JID),
Server = exmpp_jid:prep_domain(JID),
true = (Server == Host) orelse (get_permission_level(From) == global),