Skip to content

Captcha


this package provides a fully functional captcha validation system the default setting are:

    LOGIN_REQUIRE_CAPTCHA = True,
    REGISTER_REQUIRE_CAPTCHA = True,
if you don't like this set them to False.

The Captcha is available to query via a base64 encoded string or via a static .png image.

Note: The Image is in PNG format

mutation MyMutation {
  captcha {
    uuid
    pilImage
  }
}

You will further be needed to implement a translation in the UI.

For the creation of a static set CAPTCHA_SAVE_IMAGE = True on your settings. This will use django's Imagefield to store the captcha image. You will also be needed to include a path in your urlpatterns for development, as per the documentation.

mutation MyMutation {
  captcha {
    uuid
    image{
      width
      height
      url

    }
  }
}