Class LoginEvents
java.lang.Object
org.apache.ofbiz.securityext.login.LoginEvents
LoginEvents - Events for UserLogin and Security handling.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
emailPasswordRequest
(HttpServletRequest request, HttpServletResponse response) event to send an email with a link to change passwordstatic String
forgotPassword
(HttpServletRequest request, HttpServletResponse response) The user forgot his/her password.static String
saveEntryParams
(HttpServletRequest request, HttpServletResponse response) Save USERNAME and PASSWORD for use by auth pages even if we start in non-auth pages.static String
showPasswordHint
(HttpServletRequest request, HttpServletResponse response) Show the password hint for the userLoginId specified in the request object.static String
storeCheckLogin
(HttpServletRequest request, HttpServletResponse response) static String
storeLogin
(HttpServletRequest request, HttpServletResponse response)
-
Field Details
-
USERNAME_COOKIE_NAME
- See Also:
-
-
Constructor Details
-
LoginEvents
public LoginEvents()
-
-
Method Details
-
saveEntryParams
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
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 requestresponse
- The HTTPResponse object for the current request- Returns:
- String specifying the exit status of this event
-
showPasswordHint
Show the password hint for the userLoginId specified in the request object.- Parameters:
request
- The HTTPRequest object for the current requestresponse
- The HTTPResponse object for the current request- Returns:
- String specifying the exit status of this event
-
emailPasswordRequest
event to send an email with a link to change password- Parameters:
request
- The HTTPRequest object for the current requestresponse
- The HTTPResponse object for the current request- Returns:
- String specifying the exit status of this event
-
storeCheckLogin
-
storeLogin
public static String storeLogin(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-