Package sk.iway.iwcm.users
Class UserChangePasswordService
java.lang.Object
sk.iway.iwcm.users.UserChangePasswordService
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddeleteChangePasswordAdminlogBean(String loginsStr, String auth) Delete adminlog record for change password action.static voiddeleteChangePasswordAdminlogBean(UserDetails user, String auth) Delete adminlog record for change password action.static AdminlogBeangetChangePasswordAdminlogBean(String login, String auth) static UserFormgetPreparedUserForm(javax.servlet.http.HttpServletRequest request) CallgetPreparedUserForm(HttpServletRequest, ModelMap)with model as NULL -> CALLED from JSPstatic UserFormgetPreparedUserForm(javax.servlet.http.HttpServletRequest request, org.springframework.ui.ModelMap model) Prepare use form for change password action.static booleansendPassword(javax.servlet.http.HttpServletRequest request, String login) Handle request for password change.static booleanverifyLoginValue(String receivedLogins, String selectedLogin, String auth, javax.servlet.http.HttpServletRequest request) Verify if received logins are valid.
-
Field Details
-
LOGINS_SEPARATOR
- See Also:
-
-
Method Details
-
sendPassword
Handle request for password change. If all is ok, send email with link to change password page.- Parameters:
request-login-- Returns:
-
getChangePasswordAdminlogBean
-
verifyLoginValue
public static boolean verifyLoginValue(String receivedLogins, String selectedLogin, String auth, javax.servlet.http.HttpServletRequest request) Verify if received logins are valid. If YES, return true, otherwise false.- Parameters:
receivedLogins-selectedLogin-auth-request-- Returns:
-
deleteChangePasswordAdminlogBean
Delete adminlog record for change password action.- Parameters:
loginsStr-auth-
-
deleteChangePasswordAdminlogBean
Delete adminlog record for change password action.- Parameters:
user-auth-
-
getPreparedUserForm
CallgetPreparedUserForm(HttpServletRequest, ModelMap)with model as NULL -> CALLED from JSP- Parameters:
request-- Returns:
-
getPreparedUserForm
public static UserForm getPreparedUserForm(javax.servlet.http.HttpServletRequest request, org.springframework.ui.ModelMap model) Prepare use form for change password action. IF all is ok, return UserForm object, otherwise NULL. If problem occurs, set attribute to model to show error message.- Parameters:
request-model-- Returns:
-