-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from piotr-iohk/update/pass/using/mnemonics
Update passphrase using menmonic sentence
- Loading branch information
Showing
3 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<% | ||
# Only supported for Shelley wallets | ||
url_path = request.env['PATH_INFO'].to_s | ||
byron_ep = "/byron-wallets/#{wal['id']}/update-pass" # -mnem | ||
shelley_ep = "/wallets/#{wal['id']}/update-pass" # -mnem | ||
wid = wal['id'] | ||
%> | ||
<div class="list-group"> | ||
<div class="list-group-item"> | ||
<small><a href="<%= (url_path.include? "byron") ? "/byron-wallets/" : "/wallets/" %><%= wid %>">go back to wallet</a></small> | ||
</div> | ||
<div class="list-group-item"> | ||
<form action="<%= (url_path.include? "byron") ? byron_ep : shelley_ep %>-mnem" method="POST"> | ||
<div class="form-group"> | ||
<label for="mnemonic_sentence"><a href="<%= (url_path.include? "byron") ? byron_ep : shelley_ep %>">Old pass</a> / Wallet mnemonics</label> | ||
<input type="text" class="form-control" name="mnemonic_sentence" id="mnemonic_sentence" | ||
placeholder="Mnemonic sentence" value=""> | ||
<label for="new_pass">New pass</label> | ||
<input type="text" class="form-control" name="new_pass" id="new_pass" | ||
placeholder="New pass" value=""> | ||
</div> | ||
<button type="submit" class="btn btn-success">Update passphrase</button> | ||
</form> | ||
</div> | ||
</div> |