@RestController @CrossOrigin public class OtpValidatorController extends Object
| Constructor and Description |
|---|
OtpValidatorController() |
| Modifier and Type | Method and Description |
|---|---|
ResponseWrapper<OtpValidatorResponseDto> |
validateOtp(String key,
String otp)
This method validates the OTP against a key.
|
@PreAuthorize(value="hasAnyRole(\'INDIVIDUAL\',\'REGISTRATION_ADMIN\',\'REGISTRATION_SUPERVISOR\',\'REGISTRATION_OFFICER\',\'ID_AUTHENTICATION\',\'AUTH\',\'RESIDENT\')") @ResponseFilter @GetMapping(value="/otp/validate") public ResponseWrapper<OtpValidatorResponseDto> validateOtp(@RequestParam String key, @RequestParam String otp)
key - the key against which the OTP needs to be validated.otp - the OTP to be validated.Copyright © 2020. All rights reserved.