[imp] authenticate in custom page

Robert Marchand robert.marchand@UMontreal.CA
Wed, 28 Nov 2001 12:29:37 -0500


Hi,

     in order to have the "reason" on logout on a custom page with 
IMP-3.0RC2, another
change is needed:

# diff -c login.php.ORIG login.php
*** login.php.ORIG      Sun Nov 18 11:28:47 2001
--- login.php   Tue Nov 27 13:43:31 2001
***************
*** 120,126 ****

   /* Redirect the user on logout if redirection is enabled. */
   if (($reason == 'logout') && $conf['user']['redirect_on_logout']) {
!     header('Location: ' . $conf['user']['redirect_on_logout']);
       exit;
   }

--- 120,126 ----

   /* Redirect the user on logout if redirection is enabled. */
   if (($reason == 'logout') && $conf['user']['redirect_on_logout']) {
!     header('Location: ' . $conf['user']['redirect_on_logout'] . 
'?reason=logout');
       exit;
   }

Thanks.

A small note: I'm very happy with this new version (IMP-3.0).  Less code 
"patching" is
required to achieve our needs here.  In fact, I can do all with "hooks", 
registry file edit and
even patching the LDAP driver is just dropping a new file in the Driver 
directory and having
our source.php pointing at it (no other change necessary).  Good work!

At 12:40 01-11-18 -0500, you wrote:
>Quoting Robert Marchand <robert.marchand@UMontreal.CA>:
> > On another issue, I've created an alternate login page and I wanted to=
 have
> > the various messages that show in login.php.  So I've made a change to
> > login.php (just add '?reason=... to the url):
>[snip]
> > Would it be possible to add this in the mainstream version?
>
>Committed - thanks!
>
>-chuck
>
>--
>Charles Hagenbuch, <chuck@horde.org>
>"What was and what may be, lie, like children whose faces we cannot see, 
>in the
>arms of silence. All we ever have is here, now." - Ursula K. Le Guin

-------
Robert Marchand                 tél: 343-6111 poste 5210
DGTIC-SIT                       e-mail: robert.marchand@umontreal.ca
Université de Montréal          Montréal, Canada