mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
* src/ejabberd_sm.erl: Bugfix for previous resource handling
change * src/mod_configure.erl: Password changing now implemented SVN Revision: 171
This commit is contained in:
parent
e7183996ed
commit
e18445a58e
@ -1,3 +1,10 @@
|
||||
2003-11-09 Alexey Shchepin <alexey@sevcom.net>
|
||||
|
||||
* src/ejabberd_sm.erl: Bugfix for previous resource handling
|
||||
change
|
||||
|
||||
* src/mod_configure.erl: Password changing now implemented
|
||||
|
||||
2003-11-07 Alexey Shchepin <alexey@sevcom.net>
|
||||
|
||||
* src/cyrsasl.erl: Updated SASL authentification
|
||||
|
@ -104,7 +104,7 @@ close_session(User, Resource) ->
|
||||
|
||||
register_connection(User, Resource, Pid) ->
|
||||
LUser = jlib:nodeprep(User),
|
||||
LResource = jlib:nodeprep(Resource),
|
||||
LResource = jlib:resourceprep(Resource),
|
||||
UR = {LUser, LResource},
|
||||
F = fun() ->
|
||||
Ss = mnesia:wread({session, UR}),
|
||||
@ -135,7 +135,7 @@ register_connection(User, Resource, Pid) ->
|
||||
|
||||
replace_my_connection(User, Resource) ->
|
||||
LUser = jlib:nodeprep(User),
|
||||
LResource = jlib:nodeprep(Resource),
|
||||
LResource = jlib:resourceprep(Resource),
|
||||
UR = {LUser, LResource},
|
||||
F = fun() ->
|
||||
Es = mnesia:read({local_session, UR}),
|
||||
@ -155,7 +155,7 @@ replace_my_connection(User, Resource) ->
|
||||
|
||||
remove_connection(User, Resource) ->
|
||||
LUser = jlib:nodeprep(User),
|
||||
LResource = jlib:nodeprep(Resource),
|
||||
LResource = jlib:resourceprep(Resource),
|
||||
F = fun() ->
|
||||
UR = {LUser, LResource},
|
||||
mnesia:delete({local_session, UR}),
|
||||
|
@ -793,7 +793,13 @@ get_sm_form(_, _, Lang) ->
|
||||
set_sm_form(User, [], Lang, XData) ->
|
||||
case lists:keysearch("action", 1, XData) of
|
||||
{value, {_, ["edit"]}} ->
|
||||
{error, ?ERR_FEATURE_NOT_IMPLEMENTED};
|
||||
case lists:keysearch("password", 1, XData) of
|
||||
{value, {_, [Password]}} ->
|
||||
ejabberd_auth:set_password(User, Password),
|
||||
{result, []};
|
||||
_ ->
|
||||
{error, ?ERR_BAD_REQUEST}
|
||||
end;
|
||||
{value, {_, ["remove"]}} ->
|
||||
ejabberd_sm ! {route,
|
||||
jlib:make_jid("", "", ""),
|
||||
|
Loading…
Reference in New Issue
Block a user