Commit 7b70c2a1 by Szeberényi Imre

user password reset fix

parent b1684905
......@@ -348,7 +348,7 @@ DJANGO_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
#'django.contrib.sites',
# 'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
......
......@@ -23,10 +23,9 @@ from django.contrib import admin
from django.urls import reverse
from django.shortcuts import redirect
from django.contrib.auth.views import (
PasswordResetView
PasswordResetView, PasswordResetConfirmView
)
from circle.settings.base import get_env_variable
from dashboard.views import (
CircleLoginView, HelpView, ResizeHelpView, TwoFactorLoginView
......@@ -47,12 +46,10 @@ urlpatterns = [
# django/contrib/auth/urls.py (care when new version)
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})/$'),
PasswordResetView,
{'set_password_form': CircleSetPasswordForm},
name='accounts.PasswordResetView'
PasswordResetConfirmView.as_view(form_class=CircleSetPasswordForm),
name='accounts.password_reset_confirm'
),
url(r'^accounts/password/reset/$', PasswordResetView,
{'password_reset_form': CirclePasswordResetForm},
url(r'^accounts/password/reset/$', PasswordResetView.as_view(form_class=CirclePasswordResetForm),
name="accounts.password-reset",
),
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