2014-11-05 10:03:48 -05:00
|
|
|
<div class="lightbox__body" ng-controller="SetPassphraseCtrl">
|
|
|
|
<header class="lightbox__header">
|
2014-04-11 12:39:13 -04:00
|
|
|
<h2>Set passphrase</h2>
|
2014-11-05 10:03:48 -05:00
|
|
|
<button class="lightbox__close" wo-touch="state.setPassphrase.toggle(false)" data-action="lightbox-close">
|
2014-09-23 09:41:37 -04:00
|
|
|
<svg><use xlink:href="#icon-close" /><title>Close</title></svg>
|
|
|
|
</button>
|
2014-04-11 12:39:13 -04:00
|
|
|
</header>
|
|
|
|
|
2014-11-05 10:03:48 -05:00
|
|
|
<div class="lightbox__content">
|
|
|
|
<p class="typo-paragraph">
|
|
|
|
You can set a passphrase to protect your key on disk. This must be entered everytime you start the app.
|
|
|
|
</p>
|
2014-04-11 12:39:13 -04:00
|
|
|
|
2014-11-05 10:03:48 -05:00
|
|
|
<form class="form" name="form">
|
|
|
|
<div class="form__row">
|
|
|
|
<input class="input-text" type="password" ng-model="oldPassphrase" placeholder="Current passphrase" tabindex="1" focus-me="true">
|
2014-04-11 12:39:13 -04:00
|
|
|
</div>
|
|
|
|
|
2014-11-05 10:03:48 -05:00
|
|
|
<p class="form__error-message" ng-show="passphraseMsg && passphraseRating < 2">{{passphraseMsg}}</p>
|
|
|
|
<p class="form__password-strong-message" ng-show="passphraseMsg && passphraseRating >= 2">{{passphraseMsg}}</p>
|
|
|
|
<div class="form__row form__row--multi">
|
|
|
|
<div class="form__col">
|
|
|
|
<input class="input-text" type="password" ng-model="newPassphrase"
|
|
|
|
placeholder="New passphrase" ng-change="checkPassphraseQuality()" tabindex="2">
|
|
|
|
</div>
|
|
|
|
<div class="form__col">
|
|
|
|
<input class="input-text" type="password" ng-model="confirmation" placeholder="Confirm passphrase"
|
|
|
|
ng-class="{'input-text--error': (confirmation || newPassphrase) && confirmation !== newPassphrase}" tabindex="3">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<footer class="lightbox__controls">
|
|
|
|
<button wo-touch="setPassphrase()" class="btn" ng-disabled="(confirmation || newPassphrase) && confirmation !== newPassphrase" tabindex="4">Set passphrase</button>
|
|
|
|
</footer>
|
|
|
|
</div>
|