-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add email confirmation for password change (#61)
* Add email confirmation for password change Token: -Added data field to store data like password or email -Added @Enumerated annotataion to TokenType TokenType: -Added CONFIRMATION value UserService: -Added rootUrl parametr to changeUserPassword method -Added confirmChangeUserPassword method UserServiceImpl: -Modified changeUserPassword method to sending emails -Added confirmChangeUserPassword method UserController: -Modified changeUserPassword method -Added confirmChangeUserPassword method * Update TokenType value -Changed enum value from CONFIRMATION to CHANGE_EMAIL_CONFIRMATION * Change TokenType values -Changed from REGISTER to REGISTER_CONFIRMATION -Remove PASSWORD and EMAIL values * Change password finals to be more precise * Change TokenType value -Changed from CHANGE_EMAIL_CONFIRMATION to CHANGE_PASSWORD_CONFIRMATION Co-authored-by: Dawid Bielecki <dawciobiel@gmail.com>
- Loading branch information
1 parent
870b94c
commit c2ca351
Showing
6 changed files
with
59 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/java/pl/simpleascoding/tutoringplatform/domain/token/TokenType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package pl.simpleascoding.tutoringplatform.domain.token; | ||
|
||
public enum TokenType { | ||
REGISTER, PASSWORD, EMAIL | ||
REGISTER_CONFIRMATION, CHANGE_PASSWORD_CONFIRMATION | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters