"auth.message.invalidUser", null, request.getLocale()));
return "redirect:/badUser.html?lang="
+ request.getLocale().getLanguage();
}
VerificationToken verificationToken = user.getVerificationToken();
if (!verificationToken.getToken().equals(token)) {
model.addAttribute("message", messages.getMessage(
"auth.message.invalidToken", null, request.getLocale()));
return "redirect:/badUser.html?lang="
+ request.getLocale().getLanguage();
}