Lost password being sent ok but then not accepting new password
I had this all working correctly but now it seems to be having an issue. If a user loses their password and enters their email then an email is correctly generated and sent to them with a new random password. The problem however is that the new password does not work. I have confirmed that the encrypted password in the database is changing. I have also created a similar page in which an administrator can click a button after inserting a new user to send a similar email and the result is the same problem. Email sent with username and password but when the user goes to login the password is not accepted. Thank you.