Skip to content

Commit

Permalink
Merge branch 'release/v1.2.0'
Browse files Browse the repository at this point in the history
Release v1.2.0
  • Loading branch information
shiido committed Nov 3, 2020
2 parents 9548f98 + 4f2c388 commit e8dddb2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,6 @@ public UserDto createUser(String firstName, String lastName, String password, St
throw new BusinessException("Ya existe un usuario con el nombre de usuario especificado.");
}

// validation email
UserEntity userEmailEntity = userService.getUserByEmail(email);
if (userEmailEntity instanceof UserEntity) {
throw new BusinessException("Ya existe un usuario con el correo electrónico especificado.");
}

if (password == null || password.isEmpty()) {
password = RandomStringUtils.random(6, true, true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class UserEntity {
@Column(name = "username", nullable = false, length = 100, unique = true)
private String username;

@Column(name = "email", nullable = false, length = 100, unique = true)
@Column(name = "email", nullable = false, length = 100)
private String email;

@Column(name = "password", nullable = false, length = 100)
Expand Down

0 comments on commit e8dddb2

Please sign in to comment.