Re: login form/md5 js error
"Jimmy Chamberlin" <[email protected]> Tue, 08 Apr 2003 05:43:20 +0000
| Newsgroups | gmane.comp.cms.phpslash.user |
|---|---|
| Message-ID | <[email protected]> |
Hello! Again. >What browser version/platform? I was able to get the error on Mac >0S9.0.4/IE5.1.4. Not sure if it matters, but I tried IE 6 and Netscape 7 on WINXP. >It looks like in loginformCR.tpl and loginblock.tpl, the MD5 function >needs to be called hex_md5: > >7,10c7,8 >< str = MD5(document.login.username.value + ":" + >< document.login.password.value) + ":" + >< document.login.challenge.value; >< document.login.response.value = MD5(str); >--- > > str = hex_md5(document.login.username.value + ":" + >document.login.password.value) + ":" + document.login.challenge.value; > > document.login.response.value = hex_md5(str); >13c11 >< document.logintrue.response.value = MD5(str); >--- > > document.logintrue.response.value = hex_md5(str); Ok, I tried that and the jscript error no longer happened. BUT it seems the 'stay logged in from this pc' (cookie) no longer works again. It works using MD5(str) and the old md5.js file though. Dunno. Could be me this time though:) I'll look some more. But thanks! _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/