4 Replies Latest reply on Apr 9, 2007 11:00 AM by rlhr

    About Identity login

      hello,

      I have a pageflow in which the user can choose to login. I'm using Seam security framework and I set the action of the login button to #{identity.login}.
      When the login is successful, the user sees the next page of the flow.

      The page of the flow are all using a template that contains the code for displaying error messages. So after the login, I get the "login successful" message.
      In that particular case, it would be nice if there would not be any message displayed. The login is part of the flow, and we just move to the next page.
      I looked at the identity code and saw that the message is always added.

      I think it would be nice to had a "silentLogin" method that would do exactly the same, but with no messages.

      What do you guys think?

      Regards,

      Richard

        • 1. Re: About Identity login

          You can open a JIRA issue and suggest it. In the meantime, remember that you can install your own subclass of identity that has exactly the behavior you want.

          • 2. Re: About Identity login
            shane.bryzak

            Just override the login message, set it to null if you don't want to display it. The seamspace example demonstrates how to do this.

            • 3. Re: About Identity login
              waynebagguley

              Also note that if you are using roles then there is a bug that doesn't clear them down when Identity.login is performed. This is fixed in CVS but not (as I am aware) in any release version. I think someone should make this more widely known as there is a workaround for it and it could compromise security.

              • 4. Re: About Identity login

                Overriding the message work fine.
                So I guess there is no need for a JIRA issue.

                Thanks a lot.