Django-otp

Latest version: v1.5.4

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

Scan your dependencies

Page 2 of 12

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

1.2.2

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

- `125`_: Support email body_html templates

.. _125: https://github.com/django-otp/django-otp/pull/125

1.2.1

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

- `124`_: Add pt-BR translations.

.. _124: https://github.com/django-otp/django-otp/pull/124

Page 2 of 12

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.