5 Replies Latest reply on Jan 31, 2007 3:41 AM by djmacpac

    Password forgotten function on login page

    djmacpac

      Hi,

      does somebody know how and where to implement a password forgotten in the login page?

        • 1. Re: Password forgotten function on login page
          theute

          Since by default, the password are 'md5sumized', you will probably want to generate a new password, make the change using the user module, then send an email to the user with the new password

          • 2. Re: Password forgotten function on login page
            bvogt

            I don't know if this is the indended way, but I could imagine:

            1. Defining a custom login module (e.g. by extending the org.jboss.portal.identity.auth.IdentityLoginModule) in order to add that eMail functionality

            2. Passing an additional parameter to the login module within portal-server-war/login.jsp

            3. Activating the new login module in portal-core-sar/conf/login-config.xml

            • 3. Re: Password forgotten function on login page
              djmacpac

              OK thx
              but which module do i have to customize if i'm using a forced login page like described here: http://wiki.jboss.org/wiki/Wiki.jsp?page=ForceLoginPage

              • 4. Re: Password forgotten function on login page
                djmacpac

                Does really nobody has a hint for me how to implement a "password forgotten" function? Is there a good walkaround for me? Or has somebody a good example for me? I just don't know where to start....

                • 5. Re: Password forgotten function on login page
                  djmacpac

                  OK, I try on an other way:

                  I created a new coloumn in the jbp_users table: jbp_clearpass. I converted all passwords from my old turbine table to my jbp table. I saved the hash in the Password coloumn and the clear password in the clearpass one. Works fine. Now I have the Problem that, when I create a new User in the Portal, the Pass will not be saved in the clearpass coloumn, just the hash. Where do I have to change the source code of the Portal to that way, that the password will also be saved in the clearpass coloumn? I looked in the UserPortlet.java, the User.java and the UserModule.java but can't find the right place...anybody has an hint?