diff --git a/Readme.md b/Readme.md index 3e152195..92475e02 100644 --- a/Readme.md +++ b/Readme.md @@ -65,8 +65,6 @@ docker-compose stop dancer; Show test coverage in target/site/jacoco/index.html: `.target/site/jacoco/index.html - - ### Accessing the API-Definition [OpenApi](https://editor.swagger.io/?url=https%3A%2F%2Fraw.githubusercontent.com%2Fdancier%2Fdancer%2Fmaster%2Fopenapi.yml) diff --git a/src/main/java/net/dancier/dancer/authentication/service/AuthenticationService.java b/src/main/java/net/dancier/dancer/authentication/service/AuthenticationService.java index 5f71aa5e..9efdb35c 100644 --- a/src/main/java/net/dancier/dancer/authentication/service/AuthenticationService.java +++ b/src/main/java/net/dancier/dancer/authentication/service/AuthenticationService.java @@ -132,7 +132,7 @@ private void handleRegistrationAttemptOfAlreadyExistingAccount(User user) { } private String passwordResetLink(String passwordResetCode) { - return frontendBaseName + "/authentication/change-password/" + passwordResetCode; + return frontendBaseName + "/registration/reset-password/" + passwordResetCode; } private String emailValidationLink(String validationCode) { @@ -170,7 +170,7 @@ public User checkEmailValidationCode(String code) { .findByCode(code).orElseThrow(() ->new ApplicationException("Unable to validate")); if (emailValidationCode.getExpiresAt().isBefore(Instant.now())) { throw new ApplicationException("Unable to Validate, code already expired"); - }; + } User user = userRepository.findById(emailValidationCode .getUserId()) .orElseThrow(() -> new ApplicationException("No user associated with this code."));