Skip to content

Commit

Permalink
v9
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrHic committed Dec 22, 2024
1 parent 791958b commit 0498eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/core/basesyntax/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ public void registerUser(User user) {
PasswordValidator passwordValidator = new PasswordValidator();
try {
passwordValidator.validate(user.getPassword(), user.getRepeatPassword());
saveUser(user);
} catch (Exception exception) {
System.out.println("Your passwords are incorrect. Try again.");
}
saveUser(user);
}

public void saveUser(User user) {
Expand Down

0 comments on commit 0498eb5

Please sign in to comment.