[PHPLIB] function auth_preauth() From: Peter Holm (PHolm <email protected>)
Date: 04/05/00

Hi,

could please somebody kindly tell me, how to use function
auth_preauth()correctly?

If I understand everything right (I doubt), something like this should
work:

function auth_preauth() {
 
// User is already registered.
// Just for testing. This is a valid uid from an example-database

   $uid = "35615ba8f90f329dfbb057a88e0e169e";
    
    return $uid;
 }

But I still get to see the login-screen instead of the code for logged
users. Is there anything to be changed in auth.inc for this to work?

Everything works fine with default-installation and costumized versions
of auth_loginform()etc. have been tested succesfully, but I want an
automatic login for already registered users.

Please excuse my silly newbie-question, I am still not too familiar with
all phplib-objects and could not find an example for auth_preauth.

Thanks for your attention.

Have a nice thread,
Peter
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.