This commit is contained in:
@@ -79,7 +79,10 @@ public class UserAuthenticationController {
|
||||
return new ResponseEntity<>(responseDTO, HttpStatus.OK);
|
||||
}
|
||||
|
||||
@PostMapping("/request-password-forgot")
|
||||
@Operation(summary = "OTP Code zur änderung des Passworts", description = "Erstellt bei Anfrage einen neuen 6-stelligen OTP Code, " +
|
||||
"mit welchem das Passwort des Accounts mit der zugehörigen Email einmalig verändert werden kann." +
|
||||
" Dieser wird per Mail an den Nutzer gesendet.")
|
||||
@PostMapping("/request-password-reset")
|
||||
public ResponseEntity<String> handleForgotPasswordRequest(@RequestBody String email, Principal principal){
|
||||
System.out.println("####################### Handle Password Reset Request #######################");
|
||||
System.out.println(email);
|
||||
@@ -97,7 +100,8 @@ public class UserAuthenticationController {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Operation(summary = "Veränderung des Passworts eines Profils ", description = "Durch Eingabe eines Validen OTP Codes " +
|
||||
"zu einer zugehörigen Email kann das Passwort des Profils geändert werden.")
|
||||
@PostMapping("/reset-password")
|
||||
public ResponseEntity<String> handlePasswordResetRequest(@RequestBody PasswordResetDTO passwordResetDTO){
|
||||
System.out.println("####################### Handle Password Reset Request RESET #######################");
|
||||
|
||||
Reference in New Issue
Block a user