diff --git a/modules/user.module b/modules/user.module
index 2e7cefb4fa24fb3397f0855537db883dbb3eac01..0144f6009f5da7c96aff0cb6da566bf54b3647e6 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 2e7cefb4fa24fb3397f0855537db883dbb3eac01..0144f6009f5da7c96aff0cb6da566bf54b3647e6 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);