| | |
| | | import java.util.Arrays; |
| | | import java.util.UUID; |
| | | |
| | | import com.pollex.pam.web.rest.errors.CustomerNotRegisteredException; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | .orElse(null); |
| | | |
| | | if (customer == null) { |
| | | return ResponseEntity.status(HttpStatus.UNAUTHORIZED).build(); |
| | | return ResponseEntity.status(HttpStatus.FORBIDDEN).build(); |
| | | } |
| | | |
| | | String jwt = customerAuthService.authorize(customer, verifyOtpParam.getIndexKey(), verifyOtpParam.getOtpCode()); |