[Vtigercrm-developers] [patch] Login, then "browser back" causes "mixed" screen
Kristof Kovacs
kristof.kovacs at onlineprojects.hu
Mon Sep 1 09:59:38 PDT 2008
Hello guys,
On certain browsers, if the user hits a "browser back" after logging
in to vtiger, he is presented with a screen that has a menu on the
top, and the login screen in the middle. This is of course a minor
bug, but there were complaints, so we fixed, and here is the patch.
To reproduce the bug on any browser: Log in, and then go to index.php?
action=Login&module=Users .
Kristóf
---
index.php | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/index.php b/index.php
index ae23b93..3781a08 100644
--- a/index.php
+++ b/index.php
@@ -192,6 +192,11 @@ if(isset($_SESSION["authenticated_user_id"]) &&
(isset($_SESSION["app_unique_key
$use_current_login = true;
}
+// Prevent loading Login again if there is an authenticated user in
the session.
+if (isset($_SESSION['authenticated_user_id']) && $module == 'Users'
&& $action == 'Login') {
+ header("Location: index.php?action=$default_action&module=
$default_module");
+}
+
if($use_current_login)
{
More information about the vtigercrm-developers
mailing list