diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2025-01-22 23:03:01 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2025-01-22 23:03:01 +0000 |
commit | 173ee2348fd8d6b4f799ac606b98f6d0da8f6935 (patch) | |
tree | 6a4cff0333221d7a7b1dcf604212aef030501e44 /urls.py | |
parent | a5341c4eb256d7d18bddca597c97a9fb91794ea6 (diff) | |
download | troggle-173ee2348fd8d6b4f799ac606b98f6d0da8f6935.tar.gz troggle-173ee2348fd8d6b4f799ac606b98f6d0da8f6935.tar.bz2 troggle-173ee2348fd8d6b4f799ac606b98f6d0da8f6935.zip |
password reset via encrypted token by email
Diffstat (limited to 'urls.py')
-rw-r--r-- | urls.py | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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"), |