plebbit / plebbit-js

A Javascript API to build applications using plebbit
GNU General Public License v2.0
41 stars 7 forks source link

implement Challenge.caseInsensitive?: boolean #19

Closed estebanabaroa closed 8 months ago

estebanabaroa commented 11 months ago

it's already added to the readme

Challenge {
  type: 'image/png' | 'text/plain' | 'chain/<chainTicker>' // tells the client how to display the challenge, start with implementing image and text only first
  challenge: string // base64 or utf8 required to complete the challenge, could be html, png, etc.
  caseInsensitive?: boolean // challenge answer capitalization is ignored, informational only option added by the challenge file
}

should be added to the return of captcha-canvas-v3 challenge

  return {challenge, verify, type, caseInsensitive: true}

and passed to the ChallengeMessage.challenges

Rinse12 commented 8 months ago

Implemented with commit 928d1083433ab93d7401113c17c8dfb35c75618d