summaryrefslogtreecommitdiff
path: root/app/Controllers/indexController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-08-13 00:25:52 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-08-13 00:25:52 +0200
commit359ccc8e4c20a60506c680e5054dbe8416fef4a9 (patch)
tree9a459bdd4663d871f057afbb907a3bbe367e3bd2 /app/Controllers/indexController.php
parentee1b8f6f72e8c2cbd3e0ad7b4322a4bb6863c028 (diff)
Long term cookie minor change
https://github.com/marienfressinaud/FreshRSS/issues/465
Diffstat (limited to 'app/Controllers/indexController.php')
-rwxr-xr-xapp/Controllers/indexController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php
index dd5b91e47..834db496c 100755
--- a/app/Controllers/indexController.php
+++ b/app/Controllers/indexController.php
@@ -344,6 +344,8 @@ class FreshRSS_index_Controller extends Minz_ActionController {
Minz_Session::_param('passwordHash', $s);
if (Minz_Request::param('keep_logged_in', false)) {
self::makeLongTermCookie($username, $s);
+ } else {
+ self::deleteLongTermCookie();
}
} else {
Minz_Log::record('Password mismatch for user ' . $username . ', nonce=' . $nonce . ', c=' . $c, Minz_Log::WARNING);