# HG changeset patch # User Waqas Hussain # Date 1340394121 -18000 # Node ID 5e71e24e33fc9e46cdc44ab9836d1ab2031b09d7 # Parent a37e4149ccd1e9fb9dc27251fab62e6dcab94ad9 mod_auth_joomla: Joomla hash should be hex-encoded, not raw binary (thanks Anthony). diff -r a37e4149ccd1 -r 5e71e24e33fc mod_auth_joomla/mod_auth_joomla.lua --- 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("^([^:]*):(.*)$");