<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>After a bad login a successful mobile login takes the user to DIMP as opposed to MIMP</title> 
  <pubDate>Fri, 10 Apr 2026 04:21:44 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8310</link> 
  <atom:link rel="self" type="application/rss+xml" title="After a bad login a successful mobile login takes the user to DIMP as opposed to MIMP" href="https://bugs.horde.org/ticket/8310/rss" /> 
  <description>After a bad login a successful mobile login takes the user to DIMP as opposed to MIMP</description> 
 
   
   
  <item> 
   <title>When connecting to a horde instance, I am routed to the mobi</title> 
   <description>When connecting to a horde instance, I am routed to the mobile version of imp/login.php. If I incorrectly enter the wrong password, I am rerouted back to the mobile version of login.php. If I get my password correct this time, I get routed to the DIMP interface as opposed to the MIMP interface.



The cause for this behaviour lies in imp/redirect.php:



When I first hit the login page - my login url is blah.com/imp/login.php?url=%2Findex.php. When I submit my details, imp/redirect.php looks for a value of $GLOBALS[&#039;url_in&#039;] (passed by the login page) in the _newSessionUrl function. If $GLOBALS[&#039;url_in&#039;] is set, then the url to which I am redirected is defined by $url = Horde::url(Util::removeParameter($GLOBALS[&#039;url_in&#039;], session_name()), true). This works.



However, if I put in a bad password, I get redirected to a url that looks something like this...

blah.com/imp/login.php?imapuser=webmaster%40blah.com&amp;horde_logout_token=lTaSVF7eQJ-qNlFXmp8B6lEyxfo&amp;app=imp&amp;logout_reason=badlogin. 



If I log in now, redirect.php cannot find a value for GLOBALS[&#039;url_in&#039;] - and _newSessionUrl calls this line of code:

 return Horde::url($GLOBALS[&#039;registry&#039;]-&gt;get(&#039;webroot&#039;, $view) . &#039;/&#039;, true); (line 295) 



As a result I am routed to DIMP. It currently looks as if the problem is caused by the fact that the GLOBALS[&#039;url_in&#039;] variable is not set after a good login from the login page after a bad login. This is currently only a problem for mobile logins.



I do not know enough about the code base to determine if the problem lies with redirect.php or the way that the login page is populated after a bad login. </description> 
   <pubDate>Wed, 27 May 2009 13:29:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8310#t54314</link> 
  </item> 
   
  <item> 
   <title>I realise that this may be a low-priority to fix, so if some</title> 
   <description>I realise that this may be a low-priority to fix, so if someone can help me patch the file (I am guessing redirect.php) - I am willing to try it and test - if that will help things along.</description> 
   <pubDate>Wed, 27 May 2009 13:36:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8310#t54315</link> 
  </item> 
   
  <item> 
   <title>On my system, Imp hands logins back to Horde. When I go on m</title> 
   <description>On my system, Imp hands logins back to Horde. When I go on my iPhone to my mail site, I get sent to a mobile friendly Horde login page. An incorrect login drops me back to that page, upon which a correct login sends me to MIMP. I.e. I can&#039;t reproduce this. Maybe because I am not using Imp for auth but passing back to Horde?</description> 
   <pubDate>Sat, 30 May 2009 12:37:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8310#t54358</link> 
  </item> 
   
  <item> 
   <title>Is it possible to alter the page to which Imp redirects the </title> 
   <description>Is it possible to alter the page to which Imp redirects the user on bad login ? Would it be possible to do this via a config setting?</description> 
   <pubDate>Sat, 30 May 2009 13:02:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8310#t54359</link> 
  </item> 
   
  <item> 
   <title>Hi



This problem persists - we were initially using a cust</title> 
   <description>Hi



This problem persists - we were initially using a custom redirect_on_logout but we removed that. Now, this problem occurs every time we logout, not even on badlogins :(</description> 
   <pubDate>Tue, 02 Jun 2009 08:17:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8310#t54384</link> 
  </item> 
   
  <item> 
   <title>I&#039;m not going to track this down in FW_3.  The Auth system h</title> 
   <description>I&#039;m not going to track this down in FW_3.  The Auth system has already been rewritten in H4.</description> 
   <pubDate>Wed, 20 Jan 2010 00:16:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8310#t57732</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
