diff options
author | Vitaly Takmazov | 2017-10-14 21:15:52 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-10-14 21:15:52 +0300 |
commit | aeda9e3733e685f5069b5cfbb16272cd32073fa0 (patch) | |
tree | 90bd451961a991a0e0ddc1f187862cc25f6aabcf /juick-server-web | |
parent | 72dcb402daa3ba822c86e3a27509a778e629a314 (diff) |
spring-security: fill user authHash
Diffstat (limited to 'juick-server-web')
-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"); } |