Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void login(String username, String password) {
- def authToken = new UsernamePasswordAuthenticationToken(username, password)
- def newauth = authenticationManager.authenticate(authToken)
- SecurityContextHolder.getContext().setAuthentication(newauth)
- }
Add Comment
Please, Sign In to add comment