-
Feb 19th, 2007, 06:57 AM
#1
Login user with username and password. Setting email in session
Hi, i have read a lot of thread talking about subclass some class or implement specific interface and filter to get custom behavior in the authetication process (adding a PIN param to check, etc...). My problem is more simple, i donīt need another param to check in the login process (only usernane and password), i need to put other user information extracted from a database into the session (email adreess, client class related to this user, etc).
Any hints ?.
Thank in advanced
Danny
-
Feb 19th, 2007, 07:06 AM
#2
I would take a look at acegi-security-sample-tutorial that ships with Acegi. It contains everything that you need to get started with Username and Password authentication. As for the extra information, you're going to need to customize the loading behaviour for the User. If you take a look at JdbcDaoImpl for example you can see how the User is built. You simply need to provide your own behaviour and extend User for your extra parameters. If you really want, you could implement the interfaces instead but I would have thought this way saves time and effort.
http://www.acegisecurity.org/multipr...bcDaoImpl.html
http://www.acegisecurity.org/multipr...ails/User.html
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules