Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
5
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7b70c2a1
authored
Jan 21, 2022
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user password reset fix
parent
b1684905
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
circle/circle/settings/base.py
+1
-1
circle/circle/urls.py
+4
-7
No files found.
circle/circle/settings/base.py
View file @
7b70c2a1
...
...
@@ -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'
,
...
...
circle/circle/urls.py
View file @
7b70c2a1
...
...
@@ -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
(),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment