diff options
| author | 2016-12-24 17:22:41 +0100 | |
|---|---|---|
| committer | 2016-12-24 17:22:41 +0100 | |
| commit | 0150aec07eadd823a271f7e4c7371a4a8b26f085 (patch) | |
| tree | 2eb97f1c015dd7e9062c286368fe52ee1b0c6d28 /app/Models/Auth.php | |
| parent | 7ae60ff0cc577997b9b754966a0f52649077b744 (diff) | |
Send cookie FreshRSS_login only once
Prior to this patch, two cookies with the same name were sent, the first
one was to destroy the cookie, and the second one to create it
Diffstat (limited to 'app/Models/Auth.php')
| -rw-r--r-- | app/Models/Auth.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/Auth.php b/app/Models/Auth.php index 3313fdf3f..e517e9b2c 100644 --- a/app/Models/Auth.php +++ b/app/Models/Auth.php @@ -236,8 +236,8 @@ class FreshRSS_FormAuth { public static function deleteCookie() { $token = Minz_Session::getLongTermCookie('FreshRSS_login'); - Minz_Session::deleteLongTermCookie('FreshRSS_login'); if (ctype_alnum($token)) { + Minz_Session::deleteLongTermCookie('FreshRSS_login'); @unlink(DATA_PATH . '/tokens/' . $token . '.txt'); } |
