From cb26cd6d5d5d1a34baf0ce48afd9bbb971b9b4e6 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 8 Apr 2018 14:42:18 +0200 Subject: [PATCH] Remove legacy_password test --- src/Model/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/User.php b/src/Model/User.php index abf4d1d3e4..ef495a45c2 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -133,7 +133,7 @@ class User } return $user['uid']; - } elseif (!empty($user['legacy_password']) || strpos($user['password'], '$') === false) { + } elseif (strpos($user['password'], '$') === false) { if (self::hashPasswordLegacy($password) === $user['password']) { self::updatePassword($user['uid'], $password); -- 2.39.5