diff options
Diffstat (limited to 'django')
-rw-r--r-- | django/srpproject/srp/views.py | 1 | ||||
-rw-r--r-- | django/srpproject/templates/login.html | 6 | ||||
-rw-r--r-- | django/srpproject/templates/register.html | 3 |
3 files changed, 8 insertions, 2 deletions
diff --git a/django/srpproject/srp/views.py b/django/srpproject/srp/views.py index 1ad98dc..4200e8c 100644 --- a/django/srpproject/srp/views.py +++ b/django/srpproject/srp/views.py @@ -116,6 +116,7 @@ def verify(request): response = "<M>%s</M>" % hashlib.sha256("%s%s%s" % (request.session["srp_A"], request.session["srp_M"], request.session["srp_S"])).hexdigest() auth.login(request, user) else: + # This should only happen when authentication is successful with SRP, but the user isn't in the auth table. response = "<error>Authentication failed. This is likely a server problem.</error>" else: response = "<error>Invalid username or password.</error>" diff --git a/django/srpproject/templates/login.html b/django/srpproject/templates/login.html index f949663..6a77b2c 100644 --- a/django/srpproject/templates/login.html +++ b/django/srpproject/templates/login.html @@ -1,11 +1,13 @@ <html> <head> + {% comment %} <script src="{{ static_files }}/SHA256.js"></script> <script src="{{ static_files }}/prng4.js"></script> <script src="{{ static_files }}/rng.js"></script> <script src="{{ static_files }}/jsbn.js"></script> - <script src="{{ static_files }}/jsbn2.js"></script> - <script src="{{ static_files }}/srp.js"></script> + <script src="{{ static_files }}/jsbn2.js"></script>{% endcomment %} + <script src="{{ static_files }}/jsPacker/srp.min.js"></script> + <script type="text/javascript"> function login() { diff --git a/django/srpproject/templates/register.html b/django/srpproject/templates/register.html index 82ce61e..2119802 100644 --- a/django/srpproject/templates/register.html +++ b/django/srpproject/templates/register.html @@ -1,11 +1,14 @@ <html> <head> + {% comment %} <script src="{{ static_files }}/SHA256.js"></script> <script src="{{ static_files }}/prng4.js"></script> <script src="{{ static_files }}/rng.js"></script> <script src="{{ static_files }}/jsbn.js"></script> <script src="{{ static_files }}/jsbn2.js"></script> <script src="{{ static_files }}/srp.js"></script> + {% endcomment %} + <script src="{{ static_files }}/jsPacker/srp.min.js"></script> <script type="text/javascript"> function register() { |