25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

* src/odbc/odbc_queries.erl (del_user_return_password): Return

password (thanks to Oleg Palij)

SVN Revision: 1343
This commit is contained in:
Badlop 2008-05-31 17:09:13 +00:00
parent 5e9576ffa3
commit 110a4b4518
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2008-05-31 Badlop <badlop@process-one.net>
* src/odbc/odbc_queries.erl (del_user_return_password): Return
password (thanks to Oleg Palij)
2008-05-22 Mickael Remond <mremond@process-one.net>
* src/ejabberd_s2s.erl: Added s2s_send_packet and s2s_receive_packet

View File

@ -129,12 +129,13 @@ del_user(LServer, Username) ->
["delete from users where username='", Username ,"';"]).
del_user_return_password(_LServer, Username, Pass) ->
ejabberd_odbc:sql_query_t(
["select password from users where username='",
Username, "';"]),
P = ejabberd_odbc:sql_query_t(
["select password from users where username='",
Username, "';"]),
ejabberd_odbc:sql_query_t(["delete from users "
"where username='", Username,
"' and password='", Pass, "';"]).
"' and password='", Pass, "';"]),
P.
list_users(LServer) ->
ejabberd_odbc:sql_query(