Joe D. Williams wrote:
Thanks to Christian Haul for answering my previous post. Still can't get the
parameter I want passed to the session.

I want to authenticate users by a username and password, using
DatabaseAuthenticatorAction and then pull information from the same database
table that contains the authentication information. For example, a custom
greeting or whatever, using values provided from the db, and not from user
input.

The DatabaseAuthenticatorAction does little more than the DatabaseSelectAction. Actually, I believe the latter can do everything the former can and more. You might need a second view to the same table by defining it twice in your descriptor with a different alias and different key set. Eg usually one would access the user table through the username. For authentication, username _and_ password are required.
And if you would like to not store clean passwords, you can easily add the DigestMetaModule and thus store and compare only SH-1 hashes....


Put another way, for the username and password provided by the user through
a login form, can I select a third value from the database, perhaps through
a nested <map:act> block for the DatabaseSelectAction within the <map:act>
block for the DatabaseAuthenticatorAction?

Sure, you can. Not really necessary since you can list additional columns to retrieve by the authenticator action. Note, you cannot use the values returned to sitemap from the action but need to access the values stored in the session.


Chris.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to