Deprecate TPhpass::hash() and TPhpass::needsRehash()
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 28 Apr 2022 12:20:47 +0000 (14:20 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 28 Apr 2022 12:20:47 +0000 (14:20 +0200)
wcfsetup/install/files/lib/system/user/authentication/password/algorithm/Phpbb3.class.php
wcfsetup/install/files/lib/system/user/authentication/password/algorithm/TPhpass.class.php

index eef8ac37e27c01a60c5477382befb2d04e9b32d6..149f555144be7ef4efdb6a165c378161a1f7c189 100644 (file)
@@ -18,8 +18,6 @@ final class Phpbb3 implements IPasswordAlgorithm
 {
     use TPhpass {
         verify as phpassVerify;
-
-        hash as phpassHash;
     }
 
     public function verify(string $password, string $hash): bool
index 64016dee78c76ad7fde37820eb61704e0900a74a..c684b75264808347b35489727bca5df12683561a 100644 (file)
@@ -121,7 +121,7 @@ trait TPhpass
     }
 
     /**
-     * @inheritDoc
+     * @deprecated 5.5 Use Phpass::hash() instead.
      */
     public function hash(string $password): string
     {
@@ -132,7 +132,7 @@ trait TPhpass
     }
 
     /**
-     * @inheritDoc
+     * @deprecated 5.5 Use Phpass::needsRehash() instead.
      */
     public function needsRehash(string $hash): bool
     {