From: David ‘Bombe’ Roden Date: Fri, 5 Nov 2010 09:28:46 +0000 (+0100) Subject: Use traditional getter name. X-Git-Tag: 0.2-RC1~24 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=bc86422e88b526c062126b9edde3acf0eeb486a2 Use traditional getter name. --- 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"))); } }