aboutsummaryrefslogtreecommitdiff
path: root/app/Models/FormAuth.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/FormAuth.php')
-rw-r--r--app/Models/FormAuth.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/Models/FormAuth.php b/app/Models/FormAuth.php
index a8b4dab8a..5bd6d97bc 100644
--- a/app/Models/FormAuth.php
+++ b/app/Models/FormAuth.php
@@ -38,8 +38,7 @@ class FreshRSS_FormAuth {
return [];
}
- /** @return string|false */
- private static function renewCookie(string $token) {
+ private static function renewCookie(string $token): string|false {
$token_file = DATA_PATH . '/tokens/' . $token . '.txt';
if (touch($token_file)) {
$limits = FreshRSS_Context::systemConf()->limits;
@@ -51,8 +50,7 @@ class FreshRSS_FormAuth {
return false;
}
- /** @return string|false */
- public static function makeCookie(string $username, string $password_hash) {
+ public static function makeCookie(string $username, string $password_hash): string|false {
do {
$token = sha1(FreshRSS_Context::systemConf()->salt . $username . uniqid('' . mt_rand(), true));
$token_file = DATA_PATH . '/tokens/' . $token . '.txt';