From 6a149250ae8fb159d5c8f40314b222c1c4ab1abf Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 29 Mar 2016 00:15:30 +0200 Subject: 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 --- application/models/muser.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'application/models') 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); } } -- cgit v1.2.3-24-g4f1b