Skip to main content

otp validator for emails

Project description

https://github.com/collective/collective.volto.otp/actions/workflows/plone-package.yml/badge.svg Coveralls https://codecov.io/gh/collective/collective.volto.otp/branch/master/graph/badge.svg Latest Version Egg Status https://img.shields.io/pypi/pyversions/collective.volto.otp.svg?style=plastic:alt:Supported-PythonVersions License

collective.volto.otp

otp validator for emails

Features

  • Email validation by otp

RestAPI

@validate-email-address

Send an message to the passed email wit OTP code to verify the address. Returns a HTTP 204 in case of success or HTTP 400 in case the email is badly composed.:

> curl -i -X POST http://localhost:8080/Plone/my-form/@validate-email-address --data-raw '{"email": "email@email.com", "uid": "ffffffff"}' -H 'Accept: application/json' -H 'Content-Type: application/json'

parameters:

  • email email address.

  • uid uid related to email field

@validate-email-token

Supposed to validate the OTP code received by the user via email. Returns HTTP 204 in case of success or HTTP 400 in case of failure

> curl -i -X POST http://localhost:8080/Plone/my-form/@validate-email-token --data-raw '{"email": "email@email.com", "otp": "blahblahblah"}' -H 'Accept: application/json' -H 'Content-Type: application/json'

parameters:

  • email email address

  • uid uid used to generate the OTP

  • otp OTP code

Translations

This product has been translated into

  • Italian

Installation

Install collective.volto.otp by adding it to your buildout:

[buildout]

...

eggs =
    collective.volto.otp

and then running bin/buildout

Authors

RedTurtle

Contributors

Put your name here, you deserve it!

  • folix-01

Contribute

Support

If you are having issues, please let us know. We have a mailing list located at: project@example.com

License

The project is licensed under the GPLv2.

Contributors

Changelog

1.0.0 (2024-06-13)

  • Initial release. [folix-01]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collective.volto.otp-1.0.0.tar.gz (28.5 kB view details)

Uploaded Source

File details

Details for the file collective.volto.otp-1.0.0.tar.gz.

File metadata

  • Download URL: collective.volto.otp-1.0.0.tar.gz
  • Upload date:
  • Size: 28.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.12

File hashes

Hashes for collective.volto.otp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cb704dbaa538085511759742077274356284587e8c9ae7929e326d78e9a6dca9
MD5 2c20098c1c13f60927d78028d2282353
BLAKE2b-256 c492fc36d24c652ef4f4a27de41e6b51219f974d265abb46679ced36bcd7d1b6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page