diff options
Diffstat (limited to 'views')
| -rw-r--r-- | views/calculator/sweep.html | 1 | ||||
| -rw-r--r-- | views/users/edit.html | 35 | ||||
| -rw-r--r-- | views/users/key.html | 7 | ||||
| -rw-r--r-- | views/users/welcome.html | 10 |
4 files changed, 36 insertions, 17 deletions
diff --git a/views/calculator/sweep.html b/views/calculator/sweep.html index 4a0ee3ee..92be828c 100644 --- a/views/calculator/sweep.html +++ b/views/calculator/sweep.html @@ -2,7 +2,6 @@ <script src='/js/jquery-1.8.2.min.js'></script> <script src='/js/llqrcode.js'></script> <script src='/js/webqr.js'></script> -<script src='/js/socket.io.js'></script> <script src='/js/bitcoinjs-min.js'></script> <script src='/js/sweep.js'></script> {{/yield-scripts}} diff --git a/views/users/edit.html b/views/users/edit.html index 66251923..0e0af3df 100644 --- a/views/users/edit.html +++ b/views/users/edit.html @@ -6,6 +6,7 @@ <h1>Settings</h1> <input type="hidden" id="username" name="username" value="{{user}}" /> + <input type="hidden" id="email" name="email" /> <div class="form-group"> <label for="title">Store Name:</label> @@ -18,9 +19,10 @@ </div> <div class="form-group"> - <label for="pubkey">Public Key:</label> + <label for="pubkey">Bitcoin Public Key:</label> <div class="input-group"> <input type="text" id="pubkey" name="pubkey" class="form-control" placeholder="xpub..." /> + <input type="hidden" id="privkey" name="privkey" /> <span class="input-group-btn"> <button id="generate" type="button" class="btn">New</button> </span> @@ -63,32 +65,37 @@ <div class="modal-body"> <ul class="nav nav-tabs" role="tablist"> - <li class="active"><a href="#step1" role="tab" data-toggle="tab">Key</a></li> + <li class="active"><a id="step1_link" href="#step1" role="tab" data-toggle="tab">Key</a></li> <li><a href="#step2" role="tab" data-toggle="tab">What's this?</a></li> </ul> <div class="tab-content"> <div id="step1" class="tab-pane active"> - <div class="form-group"> - <label for="encryption-password">Encryption Password:</label> - <input type="password" id="encryption-password" name="encryption-password" class="form-control" /> - </div> + <form id="encrypt"> + <div class="form-group"> + <label for="encryption-password">Encryption Password:</label> + <input type="password" id="encryption-password" name="encryption-password" class="form-control" /> + </div> - <div class="form-group"> - <label for="encryption-confirm">Confirm Password:</label> - <input type="password" id="encryption-confirm" name="encryption-confirm" class="form-control" /> - </div> + <div class="form-group"> + <label for="encryption-confirm">Confirm Password:</label> + <input type="password" id="encryption-confirm" name="encryption-confirm" class="form-control" /> + </div> + + <input type="submit" style="position: absolute; left: -9999px" /> + </form> <div id="key-dialog" class="alert alert-danger"> Extended Private Key <span id="status">(Unencrypted)</span> - <pre id="privkey"></pre> + <pre id="privkey_text"></pre> <div id="qr"></div> </div> </div> <div id="step2" class="tab-pane"> - <p>This is an extended key, or <a href="https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki"><abbr title="Hierarchical Deterministic Wallet">HD Wallet</abbr></a>.</p> + <p>This is a Bitcoin extended key, also known as an <a href="https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki"><abbr title="Hierarchical Deterministic Wallet">HD Wallet</abbr></a>.</p> <p>The <b>public</b> portion of the key is stored and used by CoinOS to generate a separate receiving address for every payment to your account. This prevents people from seeing transactions to your account other than their own.</p> - <p>The <b>private</b> portion of the key currently displayed in the 'Key' tab will not be accessible after you close this window. You are responsible for saving it and making copies of it.</p> - <p>Encrypting the key with a strong password prevents people from using the key if they get ahold of one of your copies. Keep the password written down and backed up separately from the key itself. <span class="text-danger"><b>We cannot reset your password</b> -- if you lose it or forget it, your funds will be lost forever.</span></p> + <p>The <b>private</b> portion of the key (displayed on the 'Key' tab) will not be accessible after you close this window. You are responsible for safely storing it and making copies of it, either by printing it out or saving it somewhere on your computer or online.</p> + <p>Encrypting the key with a strong password provides a safeguard against someone gaining access to a copy of the key. They will need to know your password to decrypt the key. Keep the password written down and backed up separately from the key.</p> + <p class="text-danger"><b>IMPORTANT: We cannot reset your password. If you lose it or forget it, any funds sent to your account will be lost forever.</b></p> <img src="/assets/img/forever.gif" width="370px" /> </div> diff --git a/views/users/key.html b/views/users/key.html new file mode 100644 index 00000000..16388251 --- /dev/null +++ b/views/users/key.html @@ -0,0 +1,7 @@ +<h1>CoinOS Wallet Key</h1> + +<p>This is your wallet key, encrypted with the password you provided:</p> + +<pre>{{key}}</pre> + +<p>You will need this key, along with your password, to access funds that you receive. We can't recover your password for you if you forget it, so keep it written down somewhere safe.</p> diff --git a/views/users/welcome.html b/views/users/welcome.html index ad7cfac1..00c67ebd 100644 --- a/views/users/welcome.html +++ b/views/users/welcome.html @@ -1,7 +1,13 @@ -<div id="main-logo"></div> - <h1>Welcome to CoinOS</h1> <p>Thanks for signing up! Please verify your email by clicking this link:<p> <div class="well"><a href="{{url}}">{{url}}</a></div> + +<h2>Your Bitcoin Wallet</h2> + +<p>We've generated a Bitcoin wallet key for you to receive payments to. This is your private key, encrypted with your account password:</p> + +<pre>{{privkey}}</pre> + +<p>You will need this key, along with your password, to access funds that you receive. We can't recover your password for you if you forget it, so keep it written down somewhere safe.</p> |
