]> git.mxchange.org Git - friendica.git/commitdiff
Remove legacy_password test
authorAlexandre Alapetite <alexandre@alapetite.fr>
Sun, 8 Apr 2018 12:42:18 +0000 (14:42 +0200)
committerAlexandre Alapetite <alexandre@alapetite.fr>
Sun, 8 Apr 2018 12:42:18 +0000 (14:42 +0200)
src/Model/User.php

index abf4d1d3e4d2ce8d486fee3d0d2586d83ce62c7a..ef495a45c2e96fc3668d1121d632911aa54c90a7 100644 (file)
@@ -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);