I almost finished the project using codeigniter and ion_auth for authentication. I can not understand this little problem:
When the user wants to change the password, I have the fields OLD_PASSWORD and NEW_PASSWORD. OLD_PASSWORD must match the database password (DB_PASSWORD). But I can not understand how the password was encrypted for storage in the database. Therefore OLD_PASSWORD never matches DB_PASSWORD, obviously.
I have not changed the default encryption for the ION_AUTH library. I tried the sha1 () function and did not match the encryption. The same goes for md5 (), which is no longer recommended for password encryption.
Can someone highlight this for me?
source share