RE: [Phplib-users] auth url question
Brought to you by:
nhruby,
richardarcher
|
From: Rob H. <rob...@ws...> - 2002-11-01 13:49:48
|
I don't agree with this approach because you are putting auth control
logic inside page and best practices are that the logic should reside in the
object itself. My questions is whether login and register should be
separate objects.
Two phased registration is where you register and then have to "activate"
the account via an email or some other process activates the account and
notifies you such as when a credit card has been approved.
Approval registration is the same process as two phase, but instead of the
account being automaticly enabled by some means, the moderator must enable
the account.
> -----Original Message-----
> From: Giancarlo [mailto:gia...@na...]
> Sent: Thursday, October 31, 2002 5:17 PM
> To: rob...@ws...
> Cc: Phplib-Users
> Subject: MO: [Phplib-users] auth url question
>
>
>
> > > 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
>
|