From a595a87476ba2e84455e37b9709d908aab5d878a Mon Sep 17 00:00:00 2001 From: "Niels Erik G. Nielsen" Date: Tue, 14 May 2013 14:32:43 -0400 Subject: [PATCH] Hacks login method to make mk2jsf demo work for now. --- .../com/indexdata/mkjsf/pazpar2/ServiceProxyExtensions.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/ServiceProxyExtensions.java b/src/main/java/com/indexdata/mkjsf/pazpar2/ServiceProxyExtensions.java index f09176d..de1f42a 100644 --- a/src/main/java/com/indexdata/mkjsf/pazpar2/ServiceProxyExtensions.java +++ b/src/main/java/com/indexdata/mkjsf/pazpar2/ServiceProxyExtensions.java @@ -46,18 +46,18 @@ public class ServiceProxyExtensions implements ServiceProxyInterface, Serializab //stateMgr.addStateListener(this); } - /* + public void login(String un, String pw) { - if (user.isAuthenticated() && user.getName().equals(un) && pz2.spClient.checkAuthentication(user)) { + if (user.isAuthenticated() && user.getName().equals(un) /* && pz2.spClient.checkAuthentication(user) */) { logger.info("Repeat request from UI to authenticate user. Auth verified for given user name so skipping log-in."); } else { logger.info("doing un/pw login"); user.setName(un); user.setPassword(pw); - login("dummy"); + login(""); } } - */ + @Override -- 1.7.10.4