[imp] Logout, Login problem in IMP3.2 RC2 --> in RC3 now?
Paul Reilly
pareilly at tcd.ie
Mon Feb 17 11:19:26 PST 2003
Just wondering if this fix has been added to RC3 too ?
> Hi Craig,
> thanks for the patch. It worked!
>
> For me, it worked like this (in 3.2RC2):
> - replace url() with applicationUrl()
> - using only the login.php URL with out the Horde webroot
>
> if ($registry->getMethod('auth/logout') == 'imp') {
> Menu::printItem(Horde::applicationUrl('login.php?reason=logout'),
> _("Logout"), 'logout.gif', $registry->getParam('graphics', 'horde'));
> } else {
> Menu::printItem(Horde::url('login.php?reason=logout'), _("Logout"),
> 'logout.gif', $registry->getParam('graphics', 'horde'));
> }
>
> Thanks
> Oliver
>
> Craig White wrote:
>
> >On Sat, 2003-02-15 at 15:30, Jan Schneider wrote:
> >
> >
> >>Zitat von "Oliver Schulze L." <oliver at samera.com.py>:
> >>
> >>
> >>
> >>>Hi,
> >>>I have installed IMP 3.2 RC2 and configured /horde/registry.php like
> >>>this:
> >>>$this->registry['auth']['login'] = 'imp';
> >>>$this->registry['auth']['logout'] = 'imp';
> >>>
> >>>I login into IMP in:
> >>>http://www.example.com/horde/imp/
> >>>and I end up in the INBOX
> >>>
> >>>Then, I logout from IMP and end up in this URL:
> >>>
> >>>
> >>>
> >>http://www.example.com/horde/imp/login.php?reason=logout&url=http%3A%2F%2Fwww.example.com%2Fhorde%2Flogin.php
> >>
> >>
> >>>Then, when I login again, I end up in Horde and not in IMP as expected.
> >>>
> >>>The problem will be solved if after Logout in IMP, I ended up in this
> >>>URL:
> >>>http://www.example.com/horde/imp/login.php?reason=logout
> >>>
> >>>Is this an issue?
> >>>
> >>>
> >>Yes, a known issue. I already spent hours to fix this with every possible
> >>configuration, without success.
> >>
> >>
> >>
> >------
> >This fixed it for me...
> >
> >On Tue, 2003-02-11 at 10:04, Patrick Boutilier wrote:
> >
> >
> >>Try changing lines 52 to 57 of imp/templates/menu/menu.inc from:
> >>
> >>
> >>/* Logout */
> >>if ($registry->getMethod('auth/logout') == 'imp') {
> >> Menu::printItem(Horde::url($registry->getParam('webroot',
> >>
> >>
> >'horde')
> >
> >
> >>. '/login.php?reason=logout'), _("Logout"), 'logout.gif',
> >>$registry->getParam('graphics', 'horde'));
> >>} else {
> >> Menu::printItem(Horde::applicationUrl('login.php?reason=logout'),
> >>_("Logout"), 'logout.gif', $registry->getParam('graphics', 'horde'));
> >>}
> >>
> >>
> >>to:
> >>
> >>
> >>/* Logout */
> >>if ($registry->getMethod('auth/logout') == 'imp') {
> >> Menu::printItem(Horde::applicationUrl('login.php?reason=logout'),
> >>_("Logout"), 'logout.gif', $registry->getParam('graphics', 'horde'));
> >>
> >>} else {
> >>Menu::printItem(Horde::url($registry->getParam('webroot', 'horde') .
> >>'/login.php?reason=logout'), _("Logout"), 'logout.gif',
> >>$registry->getParam('graphics', 'horde'));
> >>}
> >>
> >>
> >>In other words reverse the logic.
> >>
> >>
> >>The logic was changed from 3.1 to 3.2RCx . Somebody asked about this
> >>
> >>
> >on
> >
> >
> >>the list but I never saw a reply as to why it was changed.
> >>
> >>
> >
> >Craig
> >
> >
> >
> >
> >
>
> --
> Oliver Schulze L.
> <oliver at samera.com.py>
>
>
>
> --
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>
>
More information about the imp
mailing list