1
0
Fork 0
mirror of https://github.com/Luzifer/cloudkeys-go.git synced 2024-11-09 22:50:05 +00:00

Add form to edit the encryption password

The form uses layout of the form for editing passwords not the search
box. It’s required that the user enters it’s current encryption password
and the new password twice.

Issue: https://github.com/Luzifer/cloudkeys-go/issues/10
This commit is contained in:
Micha Rosenbaum 2017-01-14 15:54:53 +01:00
parent 65ac3d3ca6
commit f1ee8fb42b

View file

@ -132,6 +132,38 @@
</div> </div>
</div> </div>
</div> </div>
<div id="editEncPWDialog" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">Change Encryption Password</h4>
</div>
<div class="modal-body">
<form role="form">
<div class="form-group">
<label class="control-label" for="editEncPW_current_password">Current Password</label>
<input type="password" class="form-control" id="editEncPW_current_password" placeholder="Enter Current Password">
</div>
<div class="form-group">
<label class="control-label" for="editEncPW_password">Password</label>
<input type="password" class="form-control" id="editEncPW_password" placeholder="Enter Password">
</div>
<div class="form-group">
<label class="control-label" for="editEncPW_repeat_password">Repeat Password</label>
<input type="password" class="form-control" id="editEncPW_repeat_password" placeholder="Repeat Password">
</div>
</form>
</div>
<div class="modal-footer">
<button id="formEncPWClose" type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
<script src="//cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/aes.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/aes.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/sha1.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/sha1.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>