[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Prevent logout loop - session invalidation logic

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6997220c7a0e5_3b186c6c430c8@gitlab-sidekiq-low-urgency-cpu-bound-v2-68dc4b78c5-wxgns.mail>

Victor Emanouilov pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
c2076702 by Olivier Kango at 2026-02-19T14:34:50+00:00
[FIX] Prevent logout loop - session invalidation logic
---
* [FIX] Prevent logout loop - session invalidation logic

See merge request tikiwiki/tiki!9608

- - - - -


1 changed file:

- tiki-setup.php


Changes:

=====================================
tiki-setup.php
=====================================
@@ -71,7 +71,7 @@ require_once('tiki-setup_base.php'); //Starting here composer autoloading is ava
 if (! empty($user) && isset($_SESSION['login_time'])) {
     $userInfo = $userlib->get_user_info($user);
 
-    if (! empty($userInfo['lastLogin']) && $_SESSION['login_time'] < $userInfo['lastLogin']) {
+    if (! empty($userInfo['pass_confirm']) && $_SESSION['login_time'] < $userInfo['pass_confirm']) {
         TikiLib::lib('login')->logout();
         if (! defined('TIKI_CONSOLE') && PHP_SAPI !== 'cli') {
             header('Location:tiki-login_scr.php');



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/c2076702ab022831b313daf87cb4fef7c7cd4c88

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/c2076702ab022831b313daf87cb4fef7c7cd4c88
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.