Skip to content

Commit c588e49

Browse files
committed
feat: implement password reset functionality with expiration handling and logging
1 parent 998878f commit c588e49

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

backend/src/main/java/com/park/utmstack/service/UserService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void init() {
8080
}
8181
}
8282

83-
public User completePasswordReset(String newPassword, String key) {
83+
public void completePasswordReset(String newPassword, String key) {
8484
final String ctx = CLASS_NAME + ".completePasswordReset";
8585
log.debug("{}: Processing password reset with key: {}", ctx, key);
8686

@@ -105,7 +105,6 @@ public User completePasswordReset(String newPassword, String key) {
105105
user.setActivated(true);
106106

107107
log.info("{}: Password reset completed successfully for user: {}", ctx, user.getLogin());
108-
return user;
109108
}
110109

111110
public Optional<User> requestPasswordReset(String mail) {

0 commit comments

Comments
 (0)