mirror of
https://github.com/moparisthebest/mail
synced 2025-02-07 02:20:14 -05:00
Make public key shareable via link
This commit is contained in:
parent
4e897d01ff
commit
66bd88c07f
@ -3,6 +3,7 @@ define(function(require) {
|
|||||||
|
|
||||||
var appController = require('js/app-controller'),
|
var appController = require('js/app-controller'),
|
||||||
dl = require('js/util/download'),
|
dl = require('js/util/download'),
|
||||||
|
config = require('js/app-config').config,
|
||||||
pgp, keychain, userId;
|
pgp, keychain, userId;
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -31,6 +32,7 @@ define(function(require) {
|
|||||||
var fpr = keyParams.fingerprint;
|
var fpr = keyParams.fingerprint;
|
||||||
$scope.fingerprint = fpr.slice(0, 4) + ' ' + fpr.slice(4, 8) + ' ' + fpr.slice(8, 12) + ' ' + fpr.slice(12, 16) + ' ' + fpr.slice(16, 20) + ' ' + fpr.slice(20, 24) + ' ' + fpr.slice(24, 28) + ' ' + fpr.slice(28, 32) + ' ' + fpr.slice(32, 36) + ' ' + fpr.slice(36);
|
$scope.fingerprint = fpr.slice(0, 4) + ' ' + fpr.slice(4, 8) + ' ' + fpr.slice(8, 12) + ' ' + fpr.slice(12, 16) + ' ' + fpr.slice(16, 20) + ' ' + fpr.slice(20, 24) + ' ' + fpr.slice(24, 28) + ' ' + fpr.slice(28, 32) + ' ' + fpr.slice(32, 36) + ' ' + fpr.slice(36);
|
||||||
$scope.keysize = keyParams.bitSize;
|
$scope.keysize = keyParams.bitSize;
|
||||||
|
$scope.publicKeyUrl = config.cloudUrl + '/' + userId;
|
||||||
|
|
||||||
//
|
//
|
||||||
// scope functions
|
// scope functions
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
color: $color-blue;
|
color: $color-blue;
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
|
@ -15,11 +15,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>PGP Key ID</td>
|
<td>PGP Key ID</td>
|
||||||
<td>{{keyId}} (<a href="https://whiteout.io/revocation.html" title="Click here to reset your account." target="_blank">Revoke key</a>)</td>
|
<td>{{keyId}} (<a href="https://whiteout.io/revocation.html" title="Click to reset your account." target="_blank">Revoke key</a>)</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>PGP Fingerprint</td>
|
<td>PGP Fingerprint</td>
|
||||||
<td><span>{{fingerprint}}</span></td>
|
<td><a href="{{publicKeyUrl}}" title="Click to share your public key." target="_blank">{{fingerprint}}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Key Size (RSA)</td>
|
<td>Key Size (RSA)</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user