summaryrefslogtreecommitdiff
path: root/app/Models/Auth.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-12-24 17:33:11 +0100
committerGravatar GitHub <noreply@github.com> 2016-12-24 17:33:11 +0100
commiteded4937966340130834308a298123f9c7fa7508 (patch)
treef2c28cf4fcb8eb90a1070e3a3a42cfb287fa91ca /app/Models/Auth.php
parent02ac8d563db25aea8f7ec983b67061129536d457 (diff)
parentf25e2ba41217632121f5226751b5430f487fcdf9 (diff)
Merge pull request #1398 from Alkarex/MultipleCookiesBug
Send cookie FreshRSS_login only once
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 042210eaf..b3255cfbd 100644
--- a/app/Models/Auth.php
+++ b/app/Models/Auth.php
@@ -238,8 +238,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');
}