• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: simple database login
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >simple database login (From: Kenny Sabarese <email@hidden>)

  • Prev by Date: Re: WOMailDelivery Error In Code
  • Next by Date: Re: [WO45] Problem with a new EOQualifier subclass in Java
  • Previous by thread: Re: simple database login
  • Next by thread: WebObjects Developer and Deployment on Mac OS X Server
  • Index(es):
    • Date
    • Thread