Skip to content

Commit

Permalink
Merge branch 'release/v2.0.0' into fix/testcoverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Marjoni committed Apr 21, 2026
2 parents 9aff5fa + a6982e8 commit 0372fd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/main/java/edu/group5/app/control/AuthController.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ public void handleSignUp(SignUpPageView view, String firstName, String lastName,
privacyPolicy.setHeaderText("Accept Privacy Policy");
privacyPolicy.setContentText(
"Your user information like:\n" +
"Name and email—as well as donations tied to your account—will be saved locally on your machine.\n" +
"By creating an account, you accept the right of our app to store this information.");
"Name and email—as well as donations tied to your account—will be saved locally on your machine.\n" +
"This information is only used to create your account, and no data will be sold to third parties.\n" +
"By creating an account, you accept the right of our app to store this information on your computer.");

if (privacyPolicy.showAndWait().orElse(ButtonType.CANCEL) == ButtonType.OK) {
boolean success = userService.registerUser(
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/edu/group5/app/model/user/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public boolean registerUser(String role, String firstName, String lastName,
firstName == null || firstName.trim().isEmpty() ||
lastName == null || lastName.trim().isEmpty() ||
email == null || email.trim().isEmpty() ||
passwordHash == null || passwordHash.trim().isEmpty()) {
passwordHash == null || passwordHash.trim().isEmpty() ||
this.getUserByEmail(email) != null) {
return false;
}
User user;
Expand Down

0 comments on commit 0372fd4

Please sign in to comment.