Re: [Phplib-users] auth->mode log/reg doubts
Brought to you by:
nhruby,
richardarcher
From: Joe S. <jo...@be...> - 2002-09-30 18:36:37
|
On Mon, Sep 30, 2002 at 07:32:28PM +0200, Giancarlo wrote: > Il 16:50, lunedì 30 settembre 2002, Joe Stewart ha scritto: > > > > I agree this should have been the way it worked inside the class instead > > of the way it actually works ( always displays the form related to the > > mode variable). > > Yes, but then this original aim of auth->mode seems has been abandoned along > the way by phplib, and mutated to a default... In fact the doc speaks of it > as an intended default... and, as the auth_doregister method is to be > provoded in local.inc. one can always have his extended auth class where > auth_dorgister says "sorry you cannot register for this"... I have doubts > about the original intentions, but now auth->mode is accepted as meaning > the default mode... And i I see from your example, you adopted another var, > authmode, to indicate the mode allowed. Right? > Correct - the authmode sets what is allowed. So if request url contains ?mode=reg but authmode is "log", the loginform will be displayed not the registerform. |