Skip to content

Commit 31f9eba

Browse files
committed
refactor: reset password
1 parent 7ff5587 commit 31f9eba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/joaov1ct0r/restful_api_users_java/modules/users/services/ResetPasswordService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public void execute(ResetPasswordDTO resetPasswordDTO) throws Exception {
3838
String newUserPassword = this.generator.generateRandomPassword(9);
3939
userToUpdate.setPassword(newUserPassword);
4040
this.userRepository.save(userToUpdate);
41+
4142
this.emailService.sendMail(
4243
userToUpdate.getEmail(),
4344
"Password Updated",

0 commit comments

Comments
 (0)