From bc4b6c6e084dddfc9038b97d038999de3cafb437 Mon Sep 17 00:00:00 2001 From: root <root@thullap.(none)> Date: Tue, 14 Aug 2012 22:51:04 +0200 Subject: [PATCH] Fix possible password security problem. --- server.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.html b/server.html index d2b66522..979987d2 100644 --- a/server.html +++ b/server.html @@ -529,7 +529,7 @@ td 'authorize': { 'username': settings.credentials.username, - 'password': MD5(MD5(settings.credentials.password) + settings.credentials.authstring) + 'password': (settings.credentials.authstring != "" ? MD5(MD5(settings.credentials.password) + settings.credentials.authstring) : "" ) }, 'save': 1 }; @@ -566,7 +566,7 @@ td 'authorize': { 'username': settings.credentials.username, - 'password': MD5(MD5(settings.credentials.password) + settings.credentials.authstring) + 'password': (settings.credentials.authstring != "" ? MD5(MD5(settings.credentials.password) + settings.credentials.authstring) : "" ) } }; @@ -646,7 +646,7 @@ td 'authorize': { 'username': settings.credentials.username, - 'password': MD5(MD5(settings.credentials.password) + settings.credentials.authstring) + 'password': (settings.credentials.authstring != "" ? MD5(MD5(settings.credentials.password) + settings.credentials.authstring) : "" ) } });