Re: WOA, Building a Login form
Re: WOA, Building a Login form
- Subject: Re: WOA, Building a Login form
- From: Art Isbell <email@hidden>
- Date: Sun, 3 Apr 2005 11:44:35 -1000
On Apr 3, 2005, at 11:30 AM, Nathan Hampton wrote:
Like Drew, I'm far from an expert, but I have a WOComponent named
LoginPanel and a class named AccessControl that work together to
handle this in much the way Jean-François suggests.
Great! You might want to consider taking this separation a bit
further to eliminate the dependency of your Model class on
com.webobjects.appserver. To do so, consider passing
AccessControl.login() an EOEditingContext rather than a Session. And
instead of pushing values from your Model back to your Control layer
(e.g., session.setUser(newUser)), you could make newUser an
AccessControl instance variable with an accessor so that LoginPanel can
pull the user from AccessControl and push it to Session.
Aloha,
Art
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden