Fix #10: Messaging Service Does Not Work Without OTP_TWILIO_FROM Setting
This project is now managed with hatch, which replaces setuptools, pipenv, and tox. Users of the package should not be impacted. Developers can refer to the readme for details. If you're packaging this project from source, I suggest relying on pip's isolated builds rather than using hatch directly.
#9: OTP_TWILIO_MESSAGING_SERVICE_SID setting
Fix #6: Code uses "TWILIO_API_KEY" instead of "OTP_TWILIO_API_KEY"
- Allow configuration of API URL and API key.
Default to AutoField to avoid spurious migrations.
- Added Django 3.1 to the test environments and fixed deprecation warnings.
- Version bumped to align with the core django-otp project.
TwilioSMSDevice is now a :class:`~django_otp.models.SideChannelDevice` and implements :class:`~django_otp.models.ThrottlingMixin`.
This also drops support for old versions of Python (2.7) and Django (1.11, 2.1).
Note that this version includes migrations that will invalidate any in-flight tokens.
Build, test, and documentation cleanup.
- Drop support for Django < 1.11.
- Fix a spurious migration offered by makemigrations.
- Fix #25: make sure default keys are unicode values.
- Drop support for versions of Django that are past EOL.
- Treat :attr:`~django.contrib.auth.models.User.is_authenticated` and :attr:`~django.contrib.auth.models.User.is_anonymous` as properties in Django 1.10 and later.
- Add explict on_delete behavior for all foreign keys.
- Support longer phone numbers.
- All modules include all four Python 3 __future__ imports for consistency.
- Migrations no longer have byte strings in them.
- Use ModelAdmin.raw_id_fields for foreign keys to users.
- General cleanup and compatibility with Django 1.9a1.
- The length of time that tokens are valid can now be configured with :setting:`OTP_TWILIO_TOKEN_VALIDITY`.
- Tokens now become invalid as soon as they have been verified.
- otp_twilio now has both Django and South migrations. Please see the upgrade notes for details on upgrading from previous versions.
- :setting:`OTP_TWILIO_CHALLENGE_MESSAGE` allows you to customize the string returned to the user after the SMS is sent. It also accepts the {token} placeholder as a convenience for development.
- Fixes for unit tests under the latest pre-release version of Django 1.7.
- :setting:`OTP_TWILIO_TOKEN_TEMPLATE` allows you to customize the message that is sent by SMS.
- Now supports Django 1.4 to 1.6 on Python 2.6, 2.7, 3.2, and 3.3. This is the first release for Python 3.
Major unit test cleanup. Tests should pass or be skipped under all supported versions of Django, with or without custom users and timzeone support.
- Fix for requests integration.
- Fix exception with an empty token form.
Initial release.