forked from expo/troggle
password reset via encrypted token by email
This commit is contained in:
11
urls.py
11
urls.py
@@ -53,7 +53,7 @@ from troggle.core.views.logbooks import (
|
||||
)
|
||||
from troggle.core.views.other import controlpanel, exportlogbook, frontpage, todos
|
||||
from troggle.core.views.prospect import prospecting
|
||||
from troggle.core.views.user_registration import register
|
||||
from troggle.core.views.user_registration import register, reset_done
|
||||
from troggle.core.views.scans import allscans, cavewallets, scansingle, walletslistperson, walletslistyear
|
||||
from troggle.core.views.signup import signup
|
||||
from troggle.core.views.uploads import dwgupload, expofilerename, gpxupload, photoupload
|
||||
@@ -93,7 +93,7 @@ todo = '''
|
||||
|
||||
# WHen running on the server, apache intercepts all the /expofiles/ files so troggle never sees them,
|
||||
# so the "content type" is set by whatever apache thinks it should be. Which means .gpx files
|
||||
# get treated as XML and the web browser fails to do anything usefull
|
||||
# get treated as XML and the web browser fails to do anything useful
|
||||
|
||||
if settings.EXPOFILESREMOTE:
|
||||
expofilesurls = [
|
||||
@@ -168,9 +168,10 @@ trogglepatterns = [
|
||||
# NB setting url pattern name to 'login' instea dof 'expologin' with override Django, see https://docs.djangoproject.com/en/dev/topics/http/urls/#naming-url-patterns
|
||||
path('accounts/logout/', expologout, name='expologout'), # same as in django.contrib.auth.urls
|
||||
path('accounts/login/', expologin, name='expologin'), # same as in django.contrib.auth.urls
|
||||
path("accounts/register/<slug:username>", register, name="re_register"),
|
||||
path("accounts/register/", register, name="register"),
|
||||
path('accounts/', include('django.contrib.auth.urls')), # see line 109 in this file
|
||||
path("accounts/register/<slug:username>", register, name="re_register"), # overriding django.contrib.auth.urls
|
||||
path("accounts/register/", register, name="register"), # overriding django.contrib.auth.urls
|
||||
path("accounts/reset/done/", reset_done, name="password_reset_done"), # overriding django.contrib.auth.urls
|
||||
path('accounts/', include('django.contrib.auth.urls')), # see line 109 in this file NB initial "/accounts/" in URL
|
||||
|
||||
path('person/<slug:slug>', person, name="person"),
|
||||
path('personexpedition/<slug:slug>/<int:year>', personexpedition, name="personexpedition"),
|
||||
|
||||
Reference in New Issue
Block a user