Class LoginEvents

java.lang.Object
org.apache.ofbiz.securityext.login.LoginEvents

public class LoginEvents extends Object
LoginEvents - Events for UserLogin and Security handling.
  • Field Details

  • Constructor Details

    • LoginEvents

      public LoginEvents()
  • Method Details

    • saveEntryParams

      public static String saveEntryParams(HttpServletRequest request, HttpServletResponse response)
      Save USERNAME and PASSWORD for use by auth pages even if we start in non-auth pages.
      Parameters:
      request - The HTTP request object for the current JSP or Servlet request.
      response - The HTTP response object for the current JSP or Servlet request.
      Returns:
      String
    • forgotPassword

      public static String forgotPassword(HttpServletRequest request, HttpServletResponse response)
      The user forgot his/her password. This will call showPasswordHint, emailPassword or simply returns "success" in case no operation has been specified.
      Parameters:
      request - The HTTPRequest object for the current request
      response - The HTTPResponse object for the current request
      Returns:
      String specifying the exit status of this event
    • showPasswordHint

      public static String showPasswordHint(HttpServletRequest request, HttpServletResponse response)
      Show the password hint for the userLoginId specified in the request object.
      Parameters:
      request - The HTTPRequest object for the current request
      response - The HTTPResponse object for the current request
      Returns:
      String specifying the exit status of this event
    • emailPasswordRequest

      public static String emailPasswordRequest(HttpServletRequest request, HttpServletResponse response)
      event to send an email with a link to change password
      Parameters:
      request - The HTTPRequest object for the current request
      response - The HTTPResponse object for the current request
      Returns:
      String specifying the exit status of this event
    • storeCheckLogin

      public static String storeCheckLogin(HttpServletRequest request, HttpServletResponse response)
    • storeLogin

      public static String storeLogin(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException
      Throws:
      UnsupportedEncodingException