Explorar o código

Password input id change in zerobin.js

Hexalyse %!s(int64=11) %!d(string=hai) anos
pai
achega
eadcd60e14
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      js/zerobin.js

+ 1 - 1
js/zerobin.js

@@ -119,7 +119,7 @@ function zeroCipher(key, message) {
     if ($('input#password').val().length == 0) {
     if ($('input#password').val().length == 0) {
         return sjcl.encrypt(key, compress(message));
         return sjcl.encrypt(key, compress(message));
     }
     }
-    return sjcl.encrypt(key + sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash($("input#password").val())), compress(message));
+    return sjcl.encrypt(key + sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash($("input#passwordinput").val())), compress(message));
 }
 }
 
 
 /**
 /**