Commit 7b70c2a1 by Szeberényi Imre

user password reset fix

parent b1684905
...@@ -348,7 +348,7 @@ DJANGO_APPS = ( ...@@ -348,7 +348,7 @@ DJANGO_APPS = (
'django.contrib.auth', 'django.contrib.auth',
'django.contrib.contenttypes', 'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.sessions',
#'django.contrib.sites', # 'django.contrib.sites',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
......
...@@ -23,10 +23,9 @@ from django.contrib import admin ...@@ -23,10 +23,9 @@ from django.contrib import admin
from django.urls import reverse from django.urls import reverse
from django.shortcuts import redirect from django.shortcuts import redirect
from django.contrib.auth.views import ( from django.contrib.auth.views import (
PasswordResetView PasswordResetView, PasswordResetConfirmView
) )
from circle.settings.base import get_env_variable from circle.settings.base import get_env_variable
from dashboard.views import ( from dashboard.views import (
CircleLoginView, HelpView, ResizeHelpView, TwoFactorLoginView CircleLoginView, HelpView, ResizeHelpView, TwoFactorLoginView
...@@ -47,12 +46,10 @@ urlpatterns = [ ...@@ -47,12 +46,10 @@ urlpatterns = [
# django/contrib/auth/urls.py (care when new version) # django/contrib/auth/urls.py (care when new version)
url((r'^accounts/reset/(?P<uidb64>[0-9A-Za-z_\-]+)/' url((r'^accounts/reset/(?P<uidb64>[0-9A-Za-z_\-]+)/'
r'(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$'), r'(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$'),
PasswordResetView, PasswordResetConfirmView.as_view(form_class=CircleSetPasswordForm),
{'set_password_form': CircleSetPasswordForm}, name='accounts.password_reset_confirm'
name='accounts.PasswordResetView'
), ),
url(r'^accounts/password/reset/$', PasswordResetView, url(r'^accounts/password/reset/$', PasswordResetView.as_view(form_class=CirclePasswordResetForm),
{'password_reset_form': CirclePasswordResetForm},
name="accounts.password-reset", name="accounts.password-reset",
), ),
url(r'^accounts/login/?$', CircleLoginView.as_view(), url(r'^accounts/login/?$', CircleLoginView.as_view(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment