Re: simple database login
Re: simple database login
- Subject: Re: simple database login
- From: Art Isbell <email@hidden>
- Date: Tue, 11 Mar 2003 08:36:03 -1000
On Tuesday, March 11, 2003, at 05:24 AM, Kenny Sabarese wrote:
all of the provided examples that have login pages seem to be extremely
too complex that i would be able to borrow the code into one of my
projects. i know that in most other languages i can do a login against
a username and password stored in a database in about 5 lines or less.
try {
EOEnterpriseObject user =
EOUtilities.objectMatchingValues(editingContext, entityName, new
NSDictionary(new String[] {account, password}, new String[] {"Account",
"Password"}));
catch (Exception e) {
// Do something that deals with invalid account and/or password.
}
I guess this is yet another example of how WO reduces the number of
code statements - 1 :-)
Aloha,
Art
http://homepage.mac.com/aisbell/
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.