Skip to content

Commit

Permalink
Fix: demo project uses regex matching too short tokens (#291)
Browse files Browse the repository at this point in the history
This causes
```
path = reverse(
        'password_reset_confirm',
        args=[user_pk_to_url_str(user), temp_key],
)
```
in  `AllAuthPasswordResetForm` to fail and return `django.urls.exceptions.NoReverseMatch`.
See: #276 (comment)
  • Loading branch information
Paweł Sacawa committed Jul 31, 2021
1 parent f2b71af commit bbfceaf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/demo/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@


# this url is used to generate email content
url(r'^password-reset/confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
url(r'^password-reset/confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,32})/$',
TemplateView.as_view(template_name="password_reset_confirm.html"),
name='password_reset_confirm'),

Expand Down
Empty file modified demo/manage.py
100644 → 100755
Empty file.

0 comments on commit bbfceaf

Please sign in to comment.