public String activateAccount(@PathVariable String uuid, HttpServletRequest request, HttpServletResponse response)
throws UnexpectedErrorException, NoConnectionException {
try {
userService.activateAccount(uuid);
JCUser user = userService.getByUuid(uuid);
MutableHttpRequest wrappedRequest = new MutableHttpRequest(request);
wrappedRequest.addParameter(AbstractRememberMeServices.DEFAULT_PARAMETER, "true");
LoginUserDto loginUserDto = new LoginUserDto(user.getUsername(), user.getPassword(), true, getClientIpAddress(request));
loginWithLockHandling(loginUserDto, wrappedRequest, response, plainPasswordUserService);
return "redirect:/";
} catch (NotFoundException e) {
return "errors/activationExpired";