} else {
authenticUser = null;
}
if (authenticUser != null) {
SaltCache saltCache = SaltCache.getInstance();
String salt = RandomStringUtils.random(20, 0, 0, true, true, null, new SecureRandom());
saltCache.put(salt, authenticUser.getId());
httpReq.setAttribute("salt", salt);
}
} catch (Exception e) {
log.error("Error loading salt", e);