From 233850bb437c8dd666ee6594076a903e530a4ab9 Mon Sep 17 00:00:00 2001 From: ausiv4 Date: Fri, 14 Aug 2009 14:04:57 +0000 Subject: Fixed bug in views.py, changed files named 'hash' to 'crypto' since it now includes AES. --- django/srpproject/srp/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django') diff --git a/django/srpproject/srp/views.py b/django/srpproject/srp/views.py index e7de7c6..cde4e5a 100644 --- a/django/srpproject/srp/views.py +++ b/django/srpproject/srp/views.py @@ -45,7 +45,7 @@ def generate_verifier(salt, username, password): def login_page(request): from django.shortcuts import render_to_response return render_to_response('login.html', \ - {'error': "Invalid username or password" if request.GET["error"] == '1' and not request.user.is_authenticated() else "",\ + {'error': "Invalid username or password" if "error" in request.GET and request.GET["error"] == '1' and not request.user.is_authenticated() else "",\ 'static_files': "http://%s/srp-test/javascript" % request.get_host(), \ 'srp_url': "http://%s/srp/" % request.get_host()}) -- cgit v1.2.3