Support signing with another device

This commit is contained in:
Kgothatso
2019-12-04 21:46:42 +02:00
parent 2ae4fec812
commit 44fcf30df8
6 changed files with 264 additions and 25 deletions

View File

@@ -41,7 +41,7 @@ block content
a.btn-flat.copy-to-clipboard(data-clipboard-text=challenge) copy challenge to clipboard
form(action="/account/register/xpub/response" method="POST")
input(type="hidden", name="displayName", value=xpubUser.displayName)
input(type="hidden", name="id", value=challenge.id)
input(type="hidden", name="xpub", value=challenge.xpub)
input(type="hidden", name="message", value=challenge.message)
input(type="hidden", name="derivationPath", value=challenge.derivationPath)

View File

@@ -39,8 +39,16 @@ block content
br
span(style="word-wrap:anywhere")= challenge.xpub
a.btn-flat.copy-to-clipboard(data-clipboard-text=challenge) copy challenge to clipboard
.row
.col.s12
a.btn-flat.copy-to-clipboard(data-clipboard-text=challenge) copy challenge to clipboard
.row
.col.s12
form(action="/account/authenticate/signed", method="post")
input(type="hidden", name="id", value=challenge.id)
button.btn-flat.blue-text(type="submit") signed on seperate device
form(action="/account/authenticate/response" method="POST")
input(type="hidden", name="id", value=challenge.id)
input(type="hidden", name="xpub", value=challenge.xpub)
input(type="hidden", name="message", value=challenge.message)
input(type="hidden", name="derivationPath", value=challenge.derivationPath)