Re: [Phplib-users] new.auth.inc
Brought to you by:
nhruby,
richardarcher
|
From: Giancarlo P. <gia...@na...> - 2002-06-10 20:03:54
|
Andrey Lebedev wrote: > > Hi, > I like an idea of new auth class by Giancarlo, but i'm actually can't > make it work as i wish. I hope Gian or any body who are using this patch > can help...:) > ... > now when $nobody is false, the last thing outputed is "this is a login > form.". > > when $nobody us set to true, i see whole page, but nothing except > auth_preauth is calling. > var $nobody has no more sense because any page that may go for both authd/not_authed needs auth class user & perm are optional, and depend on your needs I realized that after I published the patch. you can use your default_auth class, or your auth, without difference. auth->[uid]== nobody is not checked anymore. I have now posted the latest version. there are two page.inc examples: new.page.inc_SPLASHFORM new.page.inc_DEFERFORM and two showoff.php3 examples showoff.php3_SPLASHFORM showoff.php3_DEFERFORM TODO -Throughoutly check behaviour -Test all the way when !perm->have_perm(whatever) and login form is presented and submitted -The intermediate login_in_progress swich stuff.I'll add it in the future, also to be compatible with those who have the cancel_login stuff ;-( -Put all this choice (have/not_have an intermediate state a la 'form') under a nice switch? Giancarlo |