3 Replies Latest reply on Jun 17, 2010 8:29 PM by kragoth

    How to disable the Identity.EVENT_LOGIN_SUCCESSFUL event?

    jochus.jochenhebbrecht.hotmail.com

      I'm using the Seam authentication mechanism. In the end, the identity.login() gets called which does this:


      if (Events.exists()) Events.instance().raiseEvent(EVENT_LOGIN_SUCCESSFUL);
      




      This event gets caught in the FacesSecurityEvents class.


         @Observer(Identity.EVENT_LOGIN_SUCCESSFUL)
         public void addLoginSuccessfulMessage()
         {
            StatusMessages.instance().addFromResourceBundleOrDefault(
                     getLoginSuccessfulMessageSeverity(), 
                     getLoginSuccessfulMessageKey(), 
                     getLoginSuccessfulMessage(), 
                     Identity.instance().getCredentials().getUsername());
         }
      



      ... but I don't want the StatusMessage to be added :-). How can I disable the raise of the Identity.EVENTLOGINSUCCESSFUL event?