Skip to content

Commit aabdd6e

Browse files
author
muriloalvesdev
committed
correction
1 parent a52f128 commit aabdd6e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/br/com/developers/login/dto/UserDTO.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ public static UserDTO build(User user) {
3030
List<GrantedAuthority> authorities =
3131
user.getRoles().stream().map(role -> new SimpleGrantedAuthority(role.getName().name()))
3232
.collect(Collectors.toList());
33-
34-
return new UserDTO(UUID.randomUUID(), user.getFirstName(), user.getLastName(), user.getEmail(),
33+
return new UserDTO(user.getId(), user.getFirstName(), user.getLastName(), user.getEmail(),
3534
user.getPassword(), authorities);
3635
}
3736

0 commit comments

Comments
 (0)