mirror of
https://github.com/24eme/signaturepdf
synced 2024-05-17 05:06:36 +02:00
Add key to sharing url
This commit is contained in:
parent
1b8a037f3c
commit
2cfb6ff64e
2
app.php
2
app.php
|
@ -248,7 +248,7 @@ $f3->route('POST /share',
|
|||
|
||||
$symmetricKey = "";
|
||||
if (isset($_COOKIE[$hash])) {
|
||||
$symmetricKey = "#sk:" . $_COOKIE[$hash];
|
||||
$symmetricKey = "#k:" . $_COOKIE[$hash];
|
||||
$encryptor = new CryptographyClass($_COOKIE[$hash], $f3->get('PDF_STORAGE_PATH').$hash);
|
||||
if (!$encryptor->encrypt()) {
|
||||
shell_exec("rm -rf $sharingFolder");
|
||||
|
|
|
@ -224,7 +224,7 @@
|
|||
<span class="input-group-text"><?php echo _("Sharing link"); ?></span>
|
||||
<input id="input-share-link" type="text" onclick="this.select(); this.setSelectionRange(0, 99999);" readonly="readonly" class="form-control bg-light font-monospace" value="">
|
||||
<button onclick="navigator.clipboard.writeText(document.getElementById('input-share-link').value); this.innerText = '<?php echo _('Copied !'); ?>';" autofocus="autofocus" class="btn btn-primary" type="button" id="btn-copy-share-link"><i class="bi bi-clipboard"></i> <?php echo _('Copy'); ?></button>
|
||||
<script>document.querySelector('#input-share-link').value = document.location.href.replace(/#.*/, '');</script>
|
||||
<script>document.querySelector('#input-share-link').value = document.location.href;</script>
|
||||
</div>
|
||||
<p class="mb-0"><?php echo _("Each of the signatories can download the latest version of the signed PDF at any time."); ?></p>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue