@POST @Path("/validate-password-change") @Consumes({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON}) @Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON}) public Response validateUserPasswordForChange(@Context HttpServletRequest httpRequest,PasswordChangeParam passwordParam){
  String clientIP=_invLoginManager.getClientIP(httpRequest);
  isClientIPBlocked(clientIP);
  Response response=_passwordUtils.changePassword(passwordParam,true);
  return response;
}

@ POST @ Path ( "/validate-password-change" ) @ Consumes ( { MediaType . APPLICATION_XML , MediaType . APPLICATION_JSON } ) @ Produces ( { MediaType . APPLICATION_XML , MediaType . APPLICATION_JSON } ) public Response validateUserPasswordForChange ( @ Context HttpServletRequest httpRequest , PasswordChangeParam passwordParam ) { String clientIP = _invLoginManager . getClientIP ( httpRequest ) ; isClientIPBlocked ( clientIP ) ; Response response = _passwordUtils . changePassword ( passwordParam , true ) ; return response ; }
check to see if a proposed password change parameter satisfies vipr ' s password content rules the api can be called before login
