Jump to content

php/MySql Password


hgg

Recommended Posts

Hope this isn't an old problem that I've missed the response to- My passwords that are generated for student login use to work fine-now theyare generated, stored in the database but the new passwords won't work. Hosting company says they've made no changes, though there was a recent server upgrade.

 

Link to comment
https://forums.phpfreaks.com/topic/141000-phpmysql-password/
Share on other sites

I'm on my laptop, so I don't have access to PHP to check, but I'm fairly sure crypt generates a new salt each time it's called if you do not supply one.  In other words, the chances of the passwords ever matching again is slim.  You need to provide the same salt everytime.

 

 

http://php.net/crypt

Link to comment
https://forums.phpfreaks.com/topic/141000-phpmysql-password/#findComment-738074
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.