diff --git a/assets/global/scripts/passphrasegenerator.js b/assets/global/scripts/passphrasegenerator.js index f9ed2a3..a6831f8 100755 --- a/assets/global/scripts/passphrasegenerator.js +++ b/assets/global/scripts/passphrasegenerator.js @@ -44,11 +44,11 @@ var PassPhraseGenerator = { words: ClientWordList, - generatePassPhrase: function() { + generatePassPhrase: function(bitsval) { var crypto = window.crypto || window.msCrypto; - bits = 160; + bits = bitsval; var random = new Uint32Array(bits / 32); diff --git a/assets/pages/scripts/login.js b/assets/pages/scripts/login.js index 0c3bffd..8cecfc1 100755 --- a/assets/pages/scripts/login.js +++ b/assets/pages/scripts/login.js @@ -133,23 +133,6 @@ toastr.options = { return $state; } - if (jQuery().select2 && $('#country_list').size() > 0) { - $("#country_list").select2({ - placeholder: ' Select a Country', - templateResult: format, - templateSelection: format, - width: 'auto', - escapeMarkup: function(m) { - return m; - } - }); - - - $('#country_list').change(function() { - $('.register-form').validate().element($(this)); //revalidate the chosen dropdown value and show error or success message for the input - }); - } - $('.register-form').validate({ errorElement: 'span', //default input error message container errorClass: 'help-block', // default input error message class @@ -157,26 +140,10 @@ toastr.options = { ignore: "", rules: { - fullname: { - required: true - }, - email: { - required: true, - email: true - }, - address: { - required: true - }, - city: { - required: true - }, - country: { + walletseed: { required: true }, - username: { - required: true - }, password: { required: true }, @@ -184,14 +151,14 @@ toastr.options = { equalTo: "#register_password" }, - tnc: { + backupconfirm: { required: true } }, messages: { // custom messages for radio buttons and checkboxes tnc: { - required: "Please accept TNC first." + required: "Please have taken backup of my Seed and Wallet Password." } }, @@ -237,6 +204,7 @@ toastr.options = { jQuery('#register-btn').click(function() { jQuery('.login-form').hide(); jQuery('.register-form').show(); + $('#walletseed').text(PassPhraseGenerator.generatePassPhrase(256)) }); jQuery('#register-back-btn').click(function() { diff --git a/index.html b/index.html index 698d2c4..2d42ed5 100644 --- a/index.html +++ b/index.html @@ -99,21 +99,18 @@

Please enter following details:

-
+

Enter your account details below:

-
- -
-
+