mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
don't save email if it's empty
This commit is contained in:
@@ -121,7 +121,7 @@ public class UserREST extends AbstractResourceREST {
|
|||||||
return Response.status(Status.UNAUTHORIZED).build();
|
return Response.status(Status.UNAUTHORIZED).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
user.setEmail(request.getEmail());
|
user.setEmail(StringUtils.trimToNull(request.getEmail()));
|
||||||
if (StringUtils.isNotBlank(request.getPassword())) {
|
if (StringUtils.isNotBlank(request.getPassword())) {
|
||||||
byte[] password = encryptionService.getEncryptedPassword(
|
byte[] password = encryptionService.getEncryptedPassword(
|
||||||
request.getPassword(), user.getSalt());
|
request.getPassword(), user.getSalt());
|
||||||
|
|||||||
Reference in New Issue
Block a user