ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ange...@apache.org
Subject svn commit: r1060408 - /incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java
Date Tue, 18 Jan 2011 15:18:24 GMT
Author: angelos
Date: Tue Jan 18 15:18:17 2011
New Revision: 1060408

URL: http://svn.apache.org/viewvc?rev=1060408&view=rev
Log:
ACE-107 Also check the username, not only the password.

Modified:
    incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java

Modified: incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java?rev=1060408&r1=1060407&r2=1060408&view=diff
==============================================================================
--- incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java
(original)
+++ incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java
Tue Jan 18 15:18:17 2011
@@ -205,8 +205,6 @@ public class VaadinClient extends com.va
     public void init() {
         System.out.println("INIT " + this);
         
-//        login();
-        
         setTheme("ace");
         final Window main = new Window("Apache ACE - User Interface - " + this);
         setMainWindow(main);
@@ -381,7 +379,10 @@ public class VaadinClient extends com.va
 
 	private boolean login(String username, String password) {
 		try {
-            User user = m_userAdmin.getUser("username", "d");
+            User user = m_userAdmin.getUser("username", username);
+            if (user == null) {
+                
+            }
             Dictionary credentials = user.getCredentials();
             String userPassword = (String) credentials.get("password");
             if (!password.equals(userPassword)) {



Mime
View raw message