Django-otp

Latest version: v1.5.0

Safety actively analyzes 619256 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 11

1.5.0

--------------------------------------------------------------------------------

- `141`_: Support alternative QR code library `segno`_.

Previously, only the `qrcode`_ library was supported.

Use ``segno`` by installing ``django-otp[segno]`` or just install the
``segno`` package.

.. _141: https://github.com/django-otp/django-otp/issues/141
.. _segno: https://pypi.python.org/pypi/segno/

1.4.1

--------------------------------------------------------------------------------

- `140`_: Support customization of email delivery.

See the :class:`~django_otp.plugins.otp_email.models.EmailDevice`
documentation for API details.

- Support translation of the "sent by email" message.

.. _140: https://github.com/django-otp/django-otp/pull/140

1.4.0

--------------------------------------------------------------------------------

- `137`_: Add TimestampMixin

Add a new TimestampMixin with ``created_at`` and ``last_used_at`` fields for
device models.

All builtin plugins now have these timestamp fields and require migrating.

- Some documentation cleanup.

.. _137: https://github.com/django-otp/django-otp/pull/137

1.3.0

--------------------------------------------------------------------------------

- `122`_: Added throttling to token generation.

Devices that generate random tokens can take advantage of the new
:class:`~django_otp.models.CooldownMixin` to enforce limits on how frequently
new tokens can be generated (and presumably delivered).
:class:`~django_otp.plugins.otp_email.models.EmailDevice` uses this and has a
:setting:`default cooldown <OTP_EMAIL_COOLDOWN_DURATION>` configured.

Thanks to `Demetris Stavrou`_ for this feature.

- Note: :class:`~django_otp.models.VerifyNotAllowed` is now an
:class:`~enum.Enum`. This will break any code that inadvisably hard-coded the
string value of the `N_FAILED_ATTEMPTS` property.

.. _122: https://github.com/django-otp/django-otp/pull/122
.. _Demetris Stavrou: https://github.com/demestav

1.2.4

--------------------------------------------------------------------------------

- `133`_: Add pt-PT translation.

.. _133: https://github.com/django-otp/django-otp/pull/133

1.2.3

--------------------------------------------------------------------------------

- `131`_: Fix German translation

.. _131: https://github.com/django-otp/django-otp/pull/131

Page 1 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.