Software /
code /
prosody-modules
Diff
mod_auth_joomla/mod_auth_joomla.lua @ 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 |
parent | 422:1082856e4612 |
child | 720:97f6d7c4aaed |
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("^([^:]*):(.*)$");