<div dir="ltr">Hi Kristof,<br><br>Thanks for the patch. We shall try it out and integrate if works well.<br><br>Btw, we suggest you to submit all the patches through trac.<br><br><div class="gmail_quote">On Mon, Sep 1, 2008 at 10:29 PM, Kristof Kovacs <span dir="ltr"><<a href="mailto:kristof.kovacs@onlineprojects.hu">kristof.kovacs@onlineprojects.hu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello guys,<br>
<br>
On certain browsers, if the user hits a "browser back" after logging<br>
in to vtiger, he is presented with a screen that has a menu on the<br>
top, and the login screen in the middle. This is of course a minor<br>
bug, but there were complaints, so we fixed, and here is the patch.<br>
<br>
To reproduce the bug on any browser: Log in, and then go to index.php?<br>
action=Login&module=Users .<br>
<br>
Kristóf<br>
<br>
---<br>
index.php | 5 +++++<br>
1 files changed, 5 insertions(+), 0 deletions(-)<br>
<br>
diff --git a/index.php b/index.php<br>
index ae23b93..3781a08 100644<br>
--- a/index.php<br>
+++ b/index.php<br>
@@ -192,6 +192,11 @@ if(isset($_SESSION["authenticated_user_id"]) &&<br>
(isset($_SESSION["app_unique_key<br>
$use_current_login = true;<br>
}<br>
<br>
+// Prevent loading Login again if there is an authenticated user in<br>
the session.<br>
+if (isset($_SESSION['authenticated_user_id']) && $module == 'Users'<br>
&& $action == 'Login') {<br>
+ header("Location: index.php?action=$default_action&module=<br>
$default_module");<br>
+}<br>
+<br>
if($use_current_login)<br>
{<br>
<br>
<br>
<br>
_______________________________________________<br>
Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com" target="_blank">http://jobs.vtiger.com</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Asha<br>vtiger Team<br>
</div>