Skip to content
Snippets Groups Projects
Commit 5570ac80 authored by Carlos Vega's avatar Carlos Vega
Browse files

adapted code for new version of django two-factor-auth package that comes with...

adapted code for new version of django two-factor-auth package that comes with breaking changes. see https://github.com/jazzband/django-two-factor-auth/releases/tag/1.14.0
parent 9a4a6665
No related branches found
No related tags found
1 merge request!445Support for Python 3.11
Pipeline #80270 failed
......@@ -47,9 +47,9 @@ INSTALLED_APPS = [
'django_otp.plugins.otp_static',
'django_otp.plugins.otp_totp',
'two_factor',
'two_factor.plugins.phonenumber',
'web',
'stronghold',
'debug_toolbar'
]
......
{% extends "login.html" %}
{% load i18n two_factor %}
{% load i18n two_factor_tags phonenumber %}
{% block content %}
......
{% extends "two_factor/_base.html" %}
{% load i18n two_factor %}
{% load i18n two_factor_tags phonenumber %}
{% block content %}
<h1>{% block title %}{% trans "Account Security" %}{% endblock %}</h1>
......
......@@ -3,7 +3,7 @@
from django.test import TestCase
from mockito import when, verify, ARGS
from phonenumbers import PhoneNumber
from two_factor.models import PhoneDevice
from two_factor.plugins.phonenumber.models import PhoneDevice
from web.nexmo_gateway import Nexmo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment