aboutsummaryrefslogtreecommitdiff
path: root/app/Utils/passwordUtil.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Utils/passwordUtil.php')
-rw-r--r--app/Utils/passwordUtil.php5
1 files changed, 5 insertions, 0 deletions
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);
+ }
}