diff --git a/bitaddress.org.html b/bitaddress.org.html index 47afdc6..586b20c 100644 --- a/bitaddress.org.html +++ b/bitaddress.org.html @@ -6210,7 +6210,7 @@ body { font-family: Arial; }
- Version History (v2.6.4) + Version History (v2.6.5) (PGP) 527B 5C82 B1F6 B2DB 72A0
ECBF 8749 7B91 6397 4F5A
@@ -7476,6 +7476,10 @@ ninja.wallets.paperwallet = { ninja.wallets.paperwallet.pageBreakAt = pageBreakAt; document.getElementById("paperkeyarea").innerHTML = ""; if (ninja.wallets.paperwallet.encrypt) { + if (passphrase == "") { + alert(ninja.translator.get("bip38alertpassphraserequired")); + return; + } document.getElementById("busyblock").className = "busy"; ninja.privateKey.BIP38GenerateIntermediatePointAsync(passphrase, null, null, function (intermediate) { ninja.wallets.paperwallet.intermediatePoint = intermediate; diff --git a/package.json b/package.json index cdbac52..5402c91 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bitaddress.org", - "version": "2.6.4", + "version": "2.6.5", "description": "Open Source JavaScript Client-Side Bitcoin Wallet Generator", "main": "Gruntfile.js", "dependencies": { diff --git a/src/bitaddress-ui.html b/src/bitaddress-ui.html index 94c466a..1842140 100644 --- a/src/bitaddress-ui.html +++ b/src/bitaddress-ui.html @@ -426,7 +426,7 @@
- Version History (v2.6.4) + Version History (v2.6.5) (PGP) 527B 5C82 B1F6 B2DB 72A0
ECBF 8749 7B91 6397 4F5A
diff --git a/src/ninja.paperwallet.js b/src/ninja.paperwallet.js index 08b9fdc..3c3314e 100644 --- a/src/ninja.paperwallet.js +++ b/src/ninja.paperwallet.js @@ -41,6 +41,10 @@ ninja.wallets.paperwallet = { ninja.wallets.paperwallet.pageBreakAt = pageBreakAt; document.getElementById("paperkeyarea").innerHTML = ""; if (ninja.wallets.paperwallet.encrypt) { + if (passphrase == "") { + alert(ninja.translator.get("bip38alertpassphraserequired")); + return; + } document.getElementById("busyblock").className = "busy"; ninja.privateKey.BIP38GenerateIntermediatePointAsync(passphrase, null, null, function (intermediate) { ninja.wallets.paperwallet.intermediatePoint = intermediate;