Class UserChangePasswordService

java.lang.Object
sk.iway.iwcm.users.UserChangePasswordService

public class UserChangePasswordService extends Object
  • Field Details

  • Method Details

    • sendPassword

      public static boolean sendPassword(javax.servlet.http.HttpServletRequest request, String login)
      Handle request for password change. If all is ok, send email with link to change password page.
      Parameters:
      request -
      login -
      Returns:
    • getChangePasswordAdminlogBean

      public static AdminlogBean getChangePasswordAdminlogBean(String login, String auth)
    • 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

      public static void deleteChangePasswordAdminlogBean(String loginsStr, String auth)
      Delete adminlog record for change password action.
      Parameters:
      loginsStr -
      auth -
    • deleteChangePasswordAdminlogBean

      public static void deleteChangePasswordAdminlogBean(UserDetails user, String auth)
      Delete adminlog record for change password action.
      Parameters:
      user -
      auth -
    • getPreparedUserForm

      public static UserForm getPreparedUserForm(javax.servlet.http.HttpServletRequest request)
      Call getPreparedUserForm(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: