; Set to 0 to disable, 2 to enable, 1 is deprecated but wont need mcrypt.
rino_encrypt = 2
+; temppath (String)
+; Custom temporary file directory
+temppath =
+
; theme (String)
; System theme name.
theme = vier
*/
namespace Friendica\Model;
-use DivineOmega\PasswordExposed\PasswordStatus;
+use DivineOmega\PasswordExposed;
use Exception;
use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
use LightOpenID;
-use function password_exposed;
require_once 'boot.php';
require_once 'include/dba.php';
*/
public static function isPasswordExposed($password)
{
- return password_exposed($password) === PasswordStatus::EXPOSED;
+ $cache = new \DivineOmega\DOFileCachePSR6\CacheItemPool();
+ $cache->changeConfig([
+ 'cacheDirectory' => get_temppath() . '/password-exposed-cache/',
+ ]);
+
+ $PasswordExposedCHecker = new PasswordExposed\PasswordExposedChecker(null, $cache);
+
+ return $PasswordExposedCHecker->passwordExposed($password) === PasswordExposed\PasswordStatus::EXPOSED;
}
/**