The following warnings occurred: | ||||||||||||||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
MD5 password Login - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26) +--- Thread: MD5 password Login (/showthread.php?tid=530) |
MD5 password Login - Jamie - 04-20-2017 I see, I'm having an issue with logging in, I think it's due to md5 hashed passwords being in capitals, do you know how I can resolve this issue - users cannot login unless the password is in lowercase and we're using a specialised modified register page of our own. MD5 password Login - mudmin - 04-20-2017 I'm confused. MD5 makes a different has for PASSWORD and password. Are you saying that you want the system to convert all passwords to lowercase first? MD5 password Login - Jamie - 04-21-2017 The passwords for my users are in UPPER CASE and not LOWER CASE (the md5 in the database is all UPPERCASE), when I attempt to sign in with the md5 in the database being in UPPERCASE, it will not allow me to sign in, if the md5 in the database is in lower case it'll all me to sign in. I attempt to use strtoupper but it returns with http error 500. MD5 password Login - Jamie - 04-21-2017 Managed to resolve it myself, through Code: if (strtoupper(md5($password)) === strtoupper($this->data()->password)) { MD5 password Login - mudmin - 04-21-2017 Yep. That's where I was going with that. MD5 password Login - Jamie - 04-21-2017 Thanks again, was looking at it like "What the hell have I done wrong this time?" and actually gave myself time to think and look at it logically. MD5 password Login - mudmin - 04-21-2017 Yeah. It makes sense. I forgot that old systems used to convert all passwords to the same case. Simpler times. |