Add seed restore functionality (#2)
minor css adjustment simplify wallet init and enter teh matrix add another check on seed inputs add stronger language around wallet deletion and seed restores add command to manually reset wallet data for a user update connect payload and adjust minor template/js remove debug statements refactor loading javascript, html, and status payload remove unused ref to .map tighten up logic and html template save template updates Merge branch 'master' of git.wownero.com:lza_menace/wowstash into seed-restores modify workflow to allow seed restoral Co-authored-by: lza_menace <lza_menace@protonmail.com> Reviewed-on: #2event-logs
джерело
3a9c13919d
коміт
e8e97c9f1c
Після Ширина: | Висота: | Розмір: 216 KiB |
Різницю між файлами не показано, оскільки один чи декілька рядків занадто довгі
@ -0,0 +1,51 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
{% include 'head.html' %}
|
||||
|
||||
<body id="page-top">
|
||||
|
||||
{% include 'navbar.html' %}
|
||||
|
||||
<section class="section2">
|
||||
<div class="container">
|
||||
<div class="section-heading text-center">
|
||||
<h2>Setup Wallet</h2>
|
||||
<p>Alrighty there hoss, pick an option below...</p>
|
||||
|
||||
<hr><br /><br />
|
||||
|
||||
<a class="btn btn-lg btn-link btn-outline btn-xl" href="{{ url_for('wallet.create') }}">Create new wallet</a>
|
||||
|
||||
<hr><br /><br />
|
||||
|
||||
<form method="POST" action="{{ url_for('wallet.setup') }}" class="send-form">
|
||||
<p><strong>! WARNING !</strong><br /> If you input a mnemonic seed here I could theoretically steal your funds, even without a wallet on my server; so could a hacker if they compromised my server.</p>
|
||||
<p>You <strong>can</strong> and <strong>should</strong> use a <a href="https://wownero.org/#wallets" target="_blank">wallet</a> you can run locally to ensure your funds are safe, especially if there is a lot there. Proceed at your own risk.</p>
|
||||
{{ restore_form.csrf_token }}
|
||||
{% for f in restore_form %}
|
||||
{% if f.name != 'csrf_token' %}
|
||||
<div class="form-group">
|
||||
{{ f.label }}
|
||||
{{ f }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<ul>
|
||||
{% for field, errors in restore_form.errors.items() %}
|
||||
<li>{{ restore_form[field].label }}: {{ ', '.join(errors) }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<input type="submit" value="Restore From Seed" class="btn btn-link btn-outline btn-xl">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% include 'footer.html' %}
|
||||
|
||||
{% include 'scripts.html' %}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
Посилання в новій задачі