Script47 Posted October 3, 2020 Share Posted October 3, 2020 (edited) Just in case it gets seen here first before Github: https://github.com/ChristopherDay/Gangster-Legends-V2/pull/54 Added a backward compatible way to update the hash algo from `sha256` to use the preferred `password_hash`/`password_verify` methods. - Introduced two new methods `hash_password($var)` and `verify_password($salt, $password, $compareTo = null)` and deprecated the old `encode` method - Removed the user ID salt as `password_hash` handles salt generation I've tested login and register with both passwords using the old algo and the new one but can't test forgot password locally, though, theoretically it should work as login and register do. Edited October 3, 2020 by Script47 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.