Use traditional getter name.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 5 Nov 2010 09:28:46 +0000 (10:28 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 5 Nov 2010 09:28:46 +0000 (10:28 +0100)
src/main/java/net/pterodactylus/sone/web/WebInterface.java
src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java

index 439c732..08d04a8 100644 (file)
@@ -143,7 +143,7 @@ public class WebInterface {
         *
         * @return The form password
         */
-       public String formPassword() {
+       public String getFormPassword() {
                return formPassword;
        }
 
index 918cb97..4f7e08f 100644 (file)
@@ -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")));
                        }
                }