Newbie form based db auth
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.