Results 1 to 2 of 2

Thread: Login user with username and password. Setting email in session

  1. #1
    Join Date
    Sep 2005
    Posts
    15

    Default 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. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    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
  •