private StoredObjectPaths storedObjectPaths;
@ResponseBody
@RequestMapping(value = "/authenticate", method = RequestMethod.POST)
public AuthenticateDTO authenticate(@RequestBody UserNamePassDTO credentials) {
final UserDetails userDetails = restHelper.getUserDetailsByEmail(credentials.username);
if (userDetails == null
|| !passwordEncoder.matches(credentials.password, userDetails.passwordHash)
|| !userDetails.emailVerified) {
return new AuthenticateDTO("", new UploadConfigDTO("", "", ""));
}