diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-03-29 00:15:30 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-03-29 00:18:22 +0200 |
commit | 6a149250ae8fb159d5c8f40314b222c1c4ab1abf (patch) | |
tree | c60ad9adbc86ba8b8d2eda38bef45cf2077bd769 /application/models/muser.php | |
parent | e061538e2092a3c95ea416fbfc00a6e045bffdcf (diff) |
Use PHP's password_hash function
This drops a third party library, but bumps our required php version to
5.5 which is currently old stable. Earlier versions are no longer
supported by php upstream nor by us.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models/muser.php')
-rw-r--r-- | application/models/muser.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/application/models/muser.php b/application/models/muser.php index 200390358..947797034 100644 --- a/application/models/muser.php +++ b/application/models/muser.php @@ -258,11 +258,7 @@ class Muser extends CI_Model { function hash_password($password) { - - require_once APPPATH."third_party/PasswordHash.php"; - - $hasher = new PasswordHash(9, false); - return $hasher->HashPassword($password); + return password_hash($password, PASSWORD_DEFAULT); } } |