diff options
Diffstat (limited to 'juick-server-web/src/main')
-rw-r--r-- | juick-server-web/src/main/java/com/juick/service/security/JuickUserDetailsService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/juick-server-web/src/main/java/com/juick/service/security/JuickUserDetailsService.java b/juick-server-web/src/main/java/com/juick/service/security/JuickUserDetailsService.java index c523f363..f6ae8909 100644 --- a/juick-server-web/src/main/java/com/juick/service/security/JuickUserDetailsService.java +++ b/juick-server-web/src/main/java/com/juick/service/security/JuickUserDetailsService.java @@ -43,8 +43,10 @@ public class JuickUserDetailsService implements UserDetailsService { com.juick.User user = userService.getFullyUserByName(username); - if (user != null) + if (user != null) { + user.setAuthHash(userService.getHashByUID(user.getUid())); return new JuickUser(user); + } throw new UsernameNotFoundException("The username " + username + " is not found"); } |