From d0452dd5f6d015a6a871f7239a1a7bb2eba6fb13 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Thu, 20 Sep 2001 18:46:56 +0000
Subject: [PATCH] - don't hash the password

---
 modules/user.module      | 4 +---
 modules/user/user.module | 4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/modules/user.module b/modules/user.module
index 2e7cefb4fa24..0144f6009f5d 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -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);
 
diff --git a/modules/user/user.module b/modules/user/user.module
index 2e7cefb4fa24..0144f6009f5d 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -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);
 
-- 
GitLab