Verified Commit d8e88621 authored by Baptiste Beauplat's avatar Baptiste Beauplat
Browse files

Replace INTERNAL_RESET_URL_TOKEN by its actual static value (removed in django3)

parent 8182a349
...@@ -27,8 +27,7 @@ ...@@ -27,8 +27,7 @@
# OTHER DEALINGS IN THE SOFTWARE. # OTHER DEALINGS IN THE SOFTWARE.
from django.contrib.auth.tokens import PasswordResetTokenGenerator from django.contrib.auth.tokens import PasswordResetTokenGenerator
from django.contrib.auth.views import INTERNAL_RESET_URL_TOKEN, \ from django.contrib.auth.views import INTERNAL_RESET_SESSION_TOKEN
INTERNAL_RESET_SESSION_TOKEN
from django.core import mail from django.core import mail
from django.urls import reverse from django.urls import reverse
from django.utils.encoding import force_bytes from django.utils.encoding import force_bytes
...@@ -67,7 +66,7 @@ class TestResetController(TestController): ...@@ -67,7 +66,7 @@ class TestResetController(TestController):
response = self.client.post(reverse('password_reset_confirm', kwargs={ response = self.client.post(reverse('password_reset_confirm', kwargs={
'uidb64': uid, 'uidb64': uid,
'token': INTERNAL_RESET_URL_TOKEN 'token': 'set-password'
}), { }), {
'new_password1': 'newpass', 'new_password1': 'newpass',
'new_password2': 'newpass', 'new_password2': 'newpass',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment