[Phplib-users] auth->mode log/reg doubts
Brought to you by:
nhruby,
richardarcher
From: Giancarlo <gia...@na...> - 2002-09-29 22:52:40
|
At the moment an auth class can have mode = log or reg, and we intend it as a default about which form to show. This value can be overridden by a ?mode= as a GET param But at a deeper exam, I came to a different conclusion, and wondere if some oddieties of phplib's logic, in regard, weren't due to an original consideration of this $auth->mode different than the I think we intend, and can be with good reasons In fact there is no need to specify that a protected page is mode=log, every protected page must be accessible by a login_page. But what if the programmer does nmot want to concede the possibility to 'register' for a certain class of auth, let's say admins. In this case, wasn't auth->mode="reg"n intended to say: for this page is alsopossible to register? So ?I'll listen to the ?mode=reg param? What about the auth->mode==log meaning 'any', you can register to this service too by overriding with by ?mode=reg ?? Or how, anyhow, can you prevent registering to a particular auth class? Gian |