summaryrefslogtreecommitdiffstats
path: root/application/libraries
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-03-29 00:15:30 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-03-29 00:18:22 +0200
commit6a149250ae8fb159d5c8f40314b222c1c4ab1abf (patch)
treec60ad9adbc86ba8b8d2eda38bef45cf2077bd769 /application/libraries
parente061538e2092a3c95ea416fbfc00a6e045bffdcf (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/libraries')
-rw-r--r--application/libraries/Duser/drivers/Duser_db.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/libraries/Duser/drivers/Duser_db.php b/application/libraries/Duser/drivers/Duser_db.php
index b73c0e2e2..102d98023 100644
--- a/application/libraries/Duser/drivers/Duser_db.php
+++ b/application/libraries/Duser/drivers/Duser_db.php
@@ -32,7 +32,7 @@ class Duser_db extends Duser_Driver {
return false;
}
- if (crypt($password, $query["password"]) === $query["password"]) {
+ if (password_verify($password, $query['password'])) {
return array(
"username" => $username,
"userid" => $query["id"]