From f04e5d7c06c6d4417b92ce34942e9d4bc3be0889 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 18 Feb 2026 18:02:41 +0100 Subject: [PATCH] summary and desc appi --- .../security/controller/UserAuthenticationController.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/SuMoC/backend/security/controller/UserAuthenticationController.java b/src/main/java/SuMoC/backend/security/controller/UserAuthenticationController.java index 41038eb..5e2f895 100644 --- a/src/main/java/SuMoC/backend/security/controller/UserAuthenticationController.java +++ b/src/main/java/SuMoC/backend/security/controller/UserAuthenticationController.java @@ -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 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 handlePasswordResetRequest(@RequestBody PasswordResetDTO passwordResetDTO){ System.out.println("####################### Handle Password Reset Request RESET #######################");