From 8355f85e0a1e22f64248919a5759458ba897f0ee Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sun, 20 Jun 2021 21:23:46 +0200 Subject: Call password_verify directly in login script --- core/namespace/User/Item.php | 7 ------- 1 file changed, 7 deletions(-) (limited to 'core/namespace') diff --git a/core/namespace/User/Item.php b/core/namespace/User/Item.php index a4ab799..e3ecd2b 100644 --- a/core/namespace/User/Item.php +++ b/core/namespace/User/Item.php @@ -25,11 +25,4 @@ class Item extends \Item { return sha1(implode(NULL, $attributes)); } - - #=============================================================================== - # Compare plaintext password with hashed password from database - #=============================================================================== - public function comparePassword($password): bool { - return password_verify($password, $this->Attribute->get('password')); - } } -- cgit v1.2.3