Commit d0452dd5 authored by Dries's avatar Dries
Browse files

- don't hash the password

parent a278b11a
......@@ -366,9 +366,7 @@ function jabber_auth($username, $password, $server, $port = 5222) {
** Hash the password:
*/
$digest = mhash(MHASH_SHA1, $password);
jabber_send($session, "<iq type='set' id='". $jabber["jid"] ."'><query xmlns='jabber:iq:auth'><username>$username</username><digest>$digest</digest><resource>drupal</resource></query></iq>");
jabber_send($session, "<iq type='set' id='". $jabber["jid"] ."'><query xmlns='jabber:iq:auth'><username>$username</username><password>$password</password><resource>drupal</resource></query></iq>");
$data = jabber_recv($session);
......
......@@ -366,9 +366,7 @@ function jabber_auth($username, $password, $server, $port = 5222) {
** Hash the password:
*/
$digest = mhash(MHASH_SHA1, $password);
jabber_send($session, "<iq type='set' id='". $jabber["jid"] ."'><query xmlns='jabber:iq:auth'><username>$username</username><digest>$digest</digest><resource>drupal</resource></query></iq>");
jabber_send($session, "<iq type='set' id='". $jabber["jid"] ."'><query xmlns='jabber:iq:auth'><username>$username</username><password>$password</password><resource>drupal</resource></query></iq>");
$data = jabber_recv($session);
......
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