summaryrefslogtreecommitdiff
path: root/app/Models/Auth.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre.alapetite@alexandra.dk> 2016-12-24 17:22:41 +0100
committerGravatar Alexandre Alapetite <alexandre.alapetite@alexandra.dk> 2016-12-24 17:22:41 +0100
commit0150aec07eadd823a271f7e4c7371a4a8b26f085 (patch)
tree2eb97f1c015dd7e9062c286368fe52ee1b0c6d28 /app/Models/Auth.php
parent7ae60ff0cc577997b9b754966a0f52649077b744 (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.php2
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');
}