Class VerificationController
java.lang.Object
com.greenloop.auth_service.controller.VerificationController
Endpoints for sending and validating email verification OTP codes.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
VerificationController
public VerificationController()
-
-
Method Details
-
sendOtp
@PostMapping("/send-otp") public org.springframework.http.ResponseEntity<String> sendOtp(@RequestParam String email) Sends a one-time password (OTP) to the given email. -
checkOtp
@PostMapping("/check-otp") public org.springframework.http.ResponseEntity<String> checkOtp(@RequestParam String email, @RequestParam String otp) Validates the OTP for the provided email.
-