Sharing certificates now creates a Share: a public page behind an
unguessable token where the recipient views and downloads the selected
certificates individually or as a ZIP, instead of receiving links or
attachments by email.
- Share model + certificate_share pivot; expiration (1/7/30 days),
optional password (encrypted so the owner can re-view it), revocation,
and open tracking
- Public routes under shared/{token}: password unlock gate (throttled,
session-scoped), per-certificate download, on-the-fly ZIP that is
AES-256 encrypted when the share has a password, friendly 410 page
for expired/revoked links
- Share modal on the certificates index now creates the page and
reveals a copyable link + password; optional transactional email
(ShareCreatedMail) still sends the link to a recipient
- New Shares page in the sidebar to copy links, look up passwords,
revoke, and delete shares
- Old signed-URL controller and both attachment/link mailables removed;
Dutch translations updated; Pest coverage for the full lifecycle
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
33 lines
1.1 KiB
PHP
33 lines
1.1 KiB
PHP
@extends('shared.layout')
|
|
|
|
@section('content')
|
|
<flux:card class="space-y-6 rounded-2xl">
|
|
<div>
|
|
<flux:heading size="xl">{{ __('This share is password protected') }}</flux:heading>
|
|
<flux:text class="mt-2">
|
|
{{ __('Enter the password you received from the sender to view the shared certificates.') }}
|
|
</flux:text>
|
|
</div>
|
|
|
|
<form method="POST" action="{{ route('shared.unlock', $share->token) }}" class="space-y-6">
|
|
@csrf
|
|
|
|
<flux:input
|
|
type="password"
|
|
name="password"
|
|
:label="__('Password')"
|
|
required
|
|
autofocus
|
|
viewable
|
|
/>
|
|
|
|
@error('password')
|
|
<flux:text class="text-sm text-red-600 dark:text-red-400">{{ $message }}</flux:text>
|
|
@enderror
|
|
|
|
<flux:button type="submit" variant="primary" class="w-full" icon="lock-open">
|
|
{{ __('Unlock') }}
|
|
</flux:button>
|
|
</form>
|
|
</flux:card>
|
|
@endsection
|