From 32b11d325e38fa7d4a287e1e4bc95367fc4896bd Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Tue, 15 Mar 2011 18:27:01 -0400
Subject: [PATCH] Keep session alive while showing login page (request token is stored in session data)
---
index.php | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/index.php b/index.php
index 440a245..21d5d85 100644
--- a/index.php
+++ b/index.php
@@ -154,7 +154,9 @@
// not logged in -> show login page
if (empty($RCMAIL->user->ID)) {
- if ($OUTPUT->ajax_call)
+ if ($RCMAIL->action == 'keep-alive')
+ $OUTPUT->send();
+ else if ($OUTPUT->ajax_call)
$OUTPUT->redirect(array(), 2000);
if (!empty($_REQUEST['_framed']))
--
Gitblit v1.9.1