• 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
Newbie form based db auth
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie form based db auth


  • Subject: Newbie form based db auth
  • From: Alvaro Muir <email@hidden>
  • Date: Thu, 01 May 2003 23:22:13 -0400

Hello,
    Could someone help me or point me to an example on authenticating against a table in a database, a simple form based auth. If someone has a working project with an EOModel that would be great to. I am just trying to implement a login page. The table 'users' in the database would be defined as:

------------
|  Users   |
------------
|  UserID  |
------------
|  Passwd  |
------------
| UserName |
------------
|  RoleID  |
____________


*RoleID isnt important at this time, its gonna be used to just separate levels of access.

So far, I have created the DB. Created the EOModel. Created the form in WOBuilder. Added a new component named 'Login'. I have configured the displayGroup 'usersDisplayGroup' to fetch Users.UserName.

Whats next? Do I rewrite the generated java completely? WebObjects spits out this Login.java :

import com.webobjects.foundation.*;
import com.webobjects.appserver.*;
import com.webobjects.eocontrol.*;
import com.webobjects.eoaccess.*;

public class Login extends WOComponent {
    public WODisplayGroup usersDisplayGroup;
    public String user;

    public Login(WOContext context) {
        super(context);
    }

}

Thanks for anyones time with this.

:// alvaro
_______________________________________________
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.

  • Follow-Ups:
    • Re: Newbie form based db auth
      • From: Art Isbell <email@hidden>
    • Re: Newbie form based db auth
      • From: james o <email@hidden>
  • Prev by Date: Re: to-many relationship fetching
  • Next by Date: Re: char set (again)
  • Previous by thread: Re: Can't connect to database in DTW WO 5.1
  • Next by thread: Re: Newbie form based db auth
  • Index(es):
    • Date
    • Thread