From a18c35046daee15e7ac5f85db290d54541a03e3c Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Tue, 11 Nov 2025 08:17:12 +0100 Subject: Housekeeping lib_rss.php (#8193) * Housekeeping lib_rss.php `lib_rss.php` had become much too large, especially after https://github.com/FreshRSS/FreshRSS/pull/7924 Moved most functions to other places. Mostly no change of code otherwise (see comments). * Extension: composer run-script phpstan-third-party --- app/Utils/passwordUtil.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/Utils/passwordUtil.php') diff --git a/app/Utils/passwordUtil.php b/app/Utils/passwordUtil.php index 76c5455c5..d522abac0 100644 --- a/app/Utils/passwordUtil.php +++ b/app/Utils/passwordUtil.php @@ -28,4 +28,9 @@ class FreshRSS_password_Util { public static function check(string $password): bool { return strlen($password) >= 7; } + + public static function cryptAvailable(): bool { + $hash = '$2y$04$usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG'; + return $hash === @crypt('password', $hash); + } } -- cgit v1.2.3