Announcement Announcement Module
Collapse
No announcement yet.
Login user with username and password. Setting email in session Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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

    Comment

    Working...
    X