The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MD5 password Login
#21
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.
  Reply
#22
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?
  Reply
#23
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.
  Reply
#24
Managed to resolve it myself, through
Code:
if (strtoupper(md5($password)) === strtoupper($this->data()->password)) {
  Reply
#25
Yep. That's where I was going with that.
  Reply
#26
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.

  Reply
#27
Yeah. It makes sense. I forgot that old systems used to convert all passwords to the same case. Simpler times.
  Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)