瀏覽代碼

Password input id change in zerobin.js

Hexalyse 11 年之前
父節點
當前提交
0198371049
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      js/zerobin.js

+ 1 - 1
js/zerobin.js

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