From a278b11a27039f6c1918a0e8336c212b1b714060 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 20 Sep 2001 18:44:14 +0000 Subject: - added a password hash --- modules/user.module | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules/user.module') diff --git a/modules/user.module b/modules/user.module index 18ff15b82..2e7cefb4f 100644 --- a/modules/user.module +++ b/modules/user.module @@ -362,7 +362,13 @@ function jabber_auth($username, $password, $server, $port = 5222) { return 0; } - jabber_send($session, "$username$passworddrupal"); + /* + ** Hash the password: + */ + + $digest = mhash(MHASH_SHA1, $password); + + jabber_send($session, "$username$digestdrupal"); $data = jabber_recv($session); -- cgit v1.2.3