MO: [Phplib-users] auth url question
Brought to you by:
nhruby,
richardarcher
From: Giancarlo <gia...@na...> - 2002-10-31 22:21:55
|
> > Single, two-phase, and approval based registration > > as you said, could easliy be added like this, in page inc > ### this mimics the auth->auth[uid]=='form' blocking login state if($sess_login_in_progress) { if(!$auth->start('login') { page_showform(); } else { unset ($sess_login_in_progress); } } > > ## this mimics the actual behavior > if( ! $auth->start('authenticate') && (!$auth->start('login')) > $auth->start('register') actually, the latter should be so: ## this mimics the actual behavior: cascade if((!$auth->start('authenticate')) && (!$auth->start('login')) && (!$auth->start('register')) { page_showform(); } I can think more, ## no cascade if((!$auth->start('authenticate')) { if( ($whatever_trigger == 'login' && !$auth->start('login')) ||($whatever_trigger == 'register')&& (!$auth->start('register')) { page_showform(); } } What do you mean by 'two phase' and 'approval based' registration? What should be the steps? Gian > By having these three functionalities at hand, *separately, we can combine > them to get the behaviors we want *out of, and apart from, the start > method* > > Gian |