git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube...
authorVásáry Dániel <daniel.vasary@userrendszerhaz.hu>
Mon, 2 Jul 2018 14:47:00 +0000 (14:47 +0000)
committerVásáry Dániel <daniel.vasary@userrendszerhaz.hu>
Mon, 2 Jul 2018 14:47:00 +0000 (14:47 +0000)
server/user.jobengine.osgi.server/src/user/jobengine/zk/util/LocalUserHandler.java

index 8967cd355c1e0f9b41c886460fc0a0b7fe166df7..84858f83eefb8a1b409157b1011fa0028ef9ead2 100644 (file)
@@ -34,10 +34,12 @@ public class LocalUserHandler {
 \r
        public UserPrincipal getUserPrincipal() {\r
                String users = cfg.getProperty(LOCAL_ACCOUNTS);\r
-               UserPrincipal result = new UserPrincipal(account);\r
+               UserPrincipal result = null;\r
                String[] userList = users.split(",");\r
                for (String user : userList) {\r
-                       if (!authenticateLocal(account, password, user))\r
+                       if (authenticateLocal(account, password, user))\r
+                               result = new UserPrincipal(account);\r
+                       else\r
                                continue;\r
                        String[] userInfo = user.split(":");\r
                        if (userInfo.length > 2)\r