From 14fdb872579388fda701f3dd558776cf0b6f79cb Mon Sep 17 00:00:00 2001 From: ausiv4 Date: Thu, 13 Aug 2009 01:23:34 +0000 Subject: Added support for logins without javascript. This is configurable on a site-by-site basis. --- django/srpproject/urls.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'django/srpproject/urls.py') diff --git a/django/srpproject/urls.py b/django/srpproject/urls.py index 43a609d..d436697 100644 --- a/django/srpproject/urls.py +++ b/django/srpproject/urls.py @@ -6,27 +6,23 @@ from django.conf.urls.defaults import * from srpproject.srp import views urlpatterns = patterns('', - # Example: - # (r'^srpproject/', include('srpproject.foo.urls')), - - # Uncomment the admin/doc line below and add 'django.contrib.admindocs' - # to INSTALLED_APPS to enable admin documentation: - # (r'^admin/doc/', include('django.contrib.admindocs.urls')), - - # Uncomment the next line to enable the admin: - # (r'^admin/(.*)', admin.site.root), # Login and regiser pages. These are mainly for testing. (r'^srp/register/$', views.register_page), (r'^srp/login/$', views.login_page), + # These pages are necessary for users to register (r'^srp/register/salt/$', views.register_salt), (r'^srp/register/user/$', views.register_user), - # + # These pages are necessary for users to log in (r'^srp/handshake/$', views.handshake), (r'^srp/authenticate/$', views.verify), + # This page allows users to login without javascript, + # but the browser posts their username and password in plaintext. + (r'^srp/noJs/$', views.no_javascript), + # Only include these if you are upgrading an existing installation to SRP (r'^srp/upgrade/authenticate/$', views.upgrade_auth), (r'^srp/upgrade/verifier/$', views.upgrade_add_verifier), -- cgit v1.2.3