修订版 | 74bd1076c98729d76da45aa3c9c8370941f2bff6 (tree) |
---|---|
时间 | 2019-02-03 23:33:37 |
作者 | sebastian_bugiu <sebastian_ <bugiu@head...> |
Commiter | sebastian_bugiu <sebastian_ |
Adding lobby support.
@@ -870,6 +870,23 @@ | ||
870 | 870 | .setParameter("id", user.getId()); |
871 | 871 | int rowsUpdated = updateUserQuery.executeUpdate(); |
872 | 872 | |
873 | + final User userResponse = new User(); | |
874 | + userResponse.setId(user.getId()); | |
875 | + userResponse.setUsername(user.getUsername()); | |
876 | + userResponse.setPassword(""); | |
877 | + userResponse.setAuthToken(user.getAuthToken()); | |
878 | + userResponse.setInSession(user.getInSession()); | |
879 | + userResponse.setKills(user.getKills()); | |
880 | + userResponse.setDeaths(user.getDeaths()); | |
881 | + userResponse.setSessionsWon(user.getSessionsWon()); | |
882 | + userResponse.setSessionsLost(user.getSessionsLost()); | |
883 | + userResponse.setSessionsPlayed(user.getSessionsPlayed()); | |
884 | + userResponse.setOnline(user.getOnline()); | |
885 | + userResponse.setLastInSessionTime(user.getLastInSessionTime()); | |
886 | + userResponse.setLastOnlineTime(user.getLastOnlineTime()); | |
887 | + | |
888 | +// user.setPassword(""); | |
889 | + | |
873 | 890 | return createResponse(user); |
874 | 891 | } |
875 | 892 |