From bc86422e88b526c062126b9edde3acf0eeb486a2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 5 Nov 2010 10:28:46 +0100 Subject: [PATCH] Use traditional getter name. --- src/main/java/net/pterodactylus/sone/web/WebInterface.java | 2 +- src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 439c732..08d04a8 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -143,7 +143,7 @@ public class WebInterface { * * @return The form password */ - public String formPassword() { + public String getFormPassword() { return formPassword; } diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java index 918cb97..4f7e08f 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java @@ -164,7 +164,7 @@ public abstract class JsonPage implements Page { public Response handleRequest(Request request) { if (needsFormPassword()) { String formPassword = request.getHttpRequest().getParam("formPassword"); - if (!webInterface.formPassword().equals(formPassword)) { + if (!webInterface.getFormPassword().equals(formPassword)) { return new Response(401, "Not authorized", "application/json", JsonUtils.format(new JsonObject().put("success", false).put("error", "auth-required"))); } } -- 2.7.4