@PUT @Path("{token}/update/{pin}") @Consumes(value = MediaType.APPLICATION_JSON) @Metric(HTTP_UPDATE_PIN_DATA) public Response updateWidgetPinDataNew(@PathParam("token") String token, @PathParam("pin") String pinString, String[] pinValues) { return updateWidgetPinData(token, pinString, pinValues); }
ResetPasswordHttpLogic resetPasswordLogic = new ResetPasswordHttpLogic(holder); HttpAPILogic httpAPILogic = new HttpAPILogic(holder); NoMatchHandler noMatchHandler = new NoMatchHandler(); BaseWebSocketUnificator baseWebSocketUnificator = new BaseWebSocketUnificator() {
mail(tokenValue.user.email, message.to, message.subj, message.title);
var resetPasswordLogic = new ResetPasswordHttpLogic(holder); var httpAPILogic = new HttpAPILogic(holder); var noMatchHandler = new NoMatchHandler(); var webSocketHandler = new WSHandler(stats); var configsLogic = new ConfigsLogic(holder, rootPath); var hardwareStatsLogic = new HardwareStatsLogic(holder, rootPath); var adminAuthHandler = new AdminAuthHandler(holder, rootPath); var authCookieHandler = new AuthCookieHandler(holder.sessionDao); var cookieBasedUrlReWriterHandler = new CookieBasedUrlReWriterHandler(rootPath, "/static/admin.html", "/static/login.html");
@GET @Path("{token}/update/{pin}") @Consumes(value = MediaType.APPLICATION_JSON) @Metric(HTTP_UPDATE_PIN_DATA) public Response updateWidgetPinDataViaGet(@PathParam("token") String token, @PathParam("pin") String pinString, @QueryParam("value") String[] pinValues, @EnumQueryParam(WidgetProperty.class) AbstractMap.SimpleImmutableEntry<WidgetProperty, String> widgetProperty) { if (pinValues != null) { return updateWidgetPinData(token, pinString, pinValues); } if (widgetProperty != null) { return updateWidgetProperty(token, pinString, widgetProperty.getKey(), widgetProperty.getValue()); } return badRequest("Wrong request format."); }
tokenValue.device.dataReceivedAt = now; String body = makeBody(dash, deviceId, pin, pinType, pinValue);
String token = generateToken(); log.info("{} trying to reset pass.", trimmedEmail);
user.profile.update(dash, deviceId, pin, pinType, pinsData[0].value, now); String body = makeBody(dash, deviceId, pin, pinType, pinsData[0].value);