Changeset

719:5e71e24e33fc

mod_auth_joomla: Joomla hash should be hex-encoded, not raw binary (thanks Anthony).
author Waqas Hussain <waqas20@gmail.com>
date Sat, 23 Jun 2012 00:42:01 +0500
parents 718:a37e4149ccd1
children 720:97f6d7c4aaed
files mod_auth_joomla/mod_auth_joomla.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_auth_joomla/mod_auth_joomla.lua	Wed Jun 20 16:08:47 2012 +0200
+++ b/mod_auth_joomla/mod_auth_joomla.lua	Sat Jun 23 00:42:01 2012 +0500
@@ -89,7 +89,8 @@
 
 
 local function getCryptedPassword(plaintext, salt)
-	return md5(plaintext..salt);
+	local salted = plaintext..salt;
+	return md5(salted, true);
 end
 local function joomlaCheckHash(password, hash)
 	local crypt, salt = hash:match("^([^:]*):(.*)$");