/**
* This trait can be used in likeable user notification events to determine the reactionType counts
- * for a specific user notification object.
+ * for a specific user notification object.
*
- * @TODO backport to WSC 3.1
- * HEADS UP: This trait is only included in version 3.0 and 3.1 for compatibility reasons. The method
- * getReactionsForAuthors() throws a \BadMethodCallException exception, if it used in version 3.0 or 3.1.
-- *
* @author Joshua Ruesweg
* @copyright 2001-2019 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @return boolean
*/
protected static function wcf2($username, $password, $salt, $dbHash) {
- return \hash_equals($dbHash, self::getDoubleSaltedHash($password, $salt));
- return CryptoUtil::secureCompare($dbHash, self::getDoubleSaltedHash($password, $dbHash));
++ return \hash_equals($dbHash, self::getDoubleSaltedHash($password, $dbHash));
}
/**