Fix acp for bcrypt update

This commit is contained in:
calzoneman 2013-03-27 15:13:41 -05:00
parent 448d774b0d
commit 30cab284b0
1 changed files with 2 additions and 6 deletions

View File

@ -74,19 +74,15 @@ if(window.location.search) {
if(uname != null && pw != null && pw != "false") { if(uname != null && pw != null && pw != "false") {
socket.emit("login", { socket.emit("login", {
name: uname, name: uname,
sha256: pw pw: pw
}); });
} }
function loginClick() { function loginClick() {
uname = $("#username").val(); uname = $("#username").val();
if($("#password").val() == "")
pw = "";
else
pw = SHA256($("#password").val());
socket.emit("login", { socket.emit("login", {
name: uname, name: uname,
sha256: pw pw: $("#password").val();
}); });
}; };