Strawberry-Pr0jcts/WoWFailureCMS — Issue #35: Admin panel login issue and solution
Author: ifilgud
Created: 2012-02-27 07:57:46+00:00
State: open

Hi!

Admin panel login doesn't work for me (skyfire emu) because the calculated sha1 in php (line 43) is not doing "strtoupper" to result, so I changed to line to:

$sha_pass_hash = strtoupper(sha1(strtoupper($accountName ) . ":" . strtoupper($accountPass)));

I also changed line 48 to:

if(strtoupper($login['sha_pass_hash']) === $sha_pass_hash && $login['gmlevel'] >= 3){

My hashs in database are in upper case, but I don't know if it happens in every emu, so I think doing uppercase in both sides (php hash and stored hash) avoids that problem :)

After this change, I can login perfectly :) (but I can't logout because I haven't found a button for that :D)