merge pull from mrcope issue 77

Removes the trimming that occurs on user input passphrases
This commit is contained in:
pointbiz 2015-01-05 19:21:20 -04:00
parent 6d7012f260
commit 0456012aa0
4 changed files with 8 additions and 8 deletions

View file

@ -9075,9 +9075,9 @@ ninja.wallets.brainwallet = {
minPassphraseLength: 15,
view: function () {
var key = document.getElementById("brainpassphrase").value.toString().replace(/^\s+|\s+$/g, ""); // trim white space
var key = document.getElementById("brainpassphrase").value.toString()
document.getElementById("brainpassphrase").value = key;
var keyConfirm = document.getElementById("brainpassphraseconfirm").value.toString().replace(/^\s+|\s+$/g, ""); // trim white space
var keyConfirm = document.getElementById("brainpassphraseconfirm").value.toString()
document.getElementById("brainpassphraseconfirm").value = keyConfirm;
if (key == keyConfirm || document.getElementById("brainpassphraseshow").checked) {
@ -9280,7 +9280,7 @@ ninja.wallets.detailwallet = {
document.getElementById("detailprivkeypassphrase").focus();
return;
}
var passphrase = document.getElementById("detailprivkeypassphrase").value.toString().replace(/^\s+|\s+$/g, ""); // trim white space
var passphrase = document.getElementById("detailprivkeypassphrase").value.toString()
if (passphrase == "") {
alert(ninja.translator.get("bip38alertpassphraserequired"));
return;

View file

@ -1,8 +1,8 @@
{
"name": "bitaddress.org",
"version": "2.9.6",
"sha1sum": "b392e9bcc432b1c246317378f90c84544e5401d5",
"sha256sum": "c613440db6af79ceda44e98affbc9d4cc3914c2d39b304d5bacf13beab039e82",
"sha1sum": "4bc22e6518d8f26ab600ba2e03751a8f47102025",
"sha256sum": "dd023df7b3810de56b14c1acbc3925c276b2b2385de3b703ab2ed1d129cd518c",
"description": "Open Source JavaScript Client-Side Bitcoin Wallet Generator",
"main": "Gruntfile.js",
"dependencies": {

View file

@ -12,9 +12,9 @@ ninja.wallets.brainwallet = {
minPassphraseLength: 15,
view: function () {
var key = document.getElementById("brainpassphrase").value.toString().replace(/^\s+|\s+$/g, ""); // trim white space
var key = document.getElementById("brainpassphrase").value.toString()
document.getElementById("brainpassphrase").value = key;
var keyConfirm = document.getElementById("brainpassphraseconfirm").value.toString().replace(/^\s+|\s+$/g, ""); // trim white space
var keyConfirm = document.getElementById("brainpassphraseconfirm").value.toString()
document.getElementById("brainpassphraseconfirm").value = keyConfirm;
if (key == keyConfirm || document.getElementById("brainpassphraseshow").checked) {

View file

@ -37,7 +37,7 @@ ninja.wallets.detailwallet = {
document.getElementById("detailprivkeypassphrase").focus();
return;
}
var passphrase = document.getElementById("detailprivkeypassphrase").value.toString().replace(/^\s+|\s+$/g, ""); // trim white space
var passphrase = document.getElementById("detailprivkeypassphrase").value.toString()
if (passphrase == "") {
alert(ninja.translator.get("bip38alertpassphraserequired"));
return;