bugfix: Fix add keys to existing device (#754)

This commit is contained in:
benk10 2020-12-06 16:35:25 +02:00 committed by GitHub
parent b19beb260c
commit 3902066b36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -286,7 +286,7 @@ def device(device_alias):
strength = 128
mnemonic = generate_mnemonic(strength=strength)
return render_template(
"device/new_device_manual.jinja",
"device/new_device.jinja",
mnemonic=mnemonic,
strength=strength,
existing_device=device,

View file

@ -34,7 +34,7 @@
</style>
<div id="device_setup_wizard" style="width: 100%;" onsubmit="showPacman();">
<h1 style="font-size: 2em;">Add {% if existing_device %}Keys{% else %}Device{% endif %}</h1><br>
<form id="form" action="./" method="POST" class="card center" style="width: auto; margin: 40px;">
<form id="form" action="{{ url_for('devices_endpoint.new_device') }}" method="POST" class="card center" style="width: auto; margin: 40px;">
{% if existing_device %}
<input type="hidden" name="existing_device" value="{{ existing_device.alias }}">
{% endif %}