| | |
| | | import java.util.Arrays; |
| | | import java.util.UUID; |
| | | |
| | | import com.pollex.pam.web.rest.errors.CustomerNotRegisteredException; |
| | | import com.pollex.pam.aop.logging.audit.AuditLoggingInject; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import com.pollex.pam.service.dto.OtpResponseDTO; |
| | | import com.pollex.pam.web.rest.vm.OtpLoginVM; |
| | | import com.pollex.pam.web.rest.vm.VerifyOtpVM; |
| | | |
| | | import static com.pollex.pam.aop.logging.audit.AuditLoggingType.CUSTOMER_LOGIN; |
| | | |
| | | @RestController |
| | | @RequestMapping("/api/otp") |
| | |
| | | return new ResponseEntity<>(otpResponse, HttpStatus.OK); |
| | | } |
| | | |
| | | @AuditLoggingInject(type = CUSTOMER_LOGIN) |
| | | @PostMapping("/verify") |
| | | public ResponseEntity<UserJWTController.JWTToken> verifyOtp(@RequestBody VerifyOtpVM verifyOtpParam) { |
| | | otpUtilService.verifyOtp(verifyOtpParam); |