mirror of
https://github.com/projectsend/projectsend.git
synced 2026-09-19 18:15:08 +00:00
856c13b09c
Staff can now invite a specific address to register instead of typing a
password for somebody and finding a way to get it to them. The invited
person sets their own, the link is locked to the address it was sent to,
and an invitation always activates the account regardless of the
auto-approve setting -- naming an address is already the decision the
approval queue exists to make for one nobody named.
Two fixes ride along: outgoing mail now reads the installation's own site
name in its title, header and signature rather than the one baked into
config('app.name') at install time, and the CSRF cookie name is read per
request rather than captured once at load.
Follow-up work, tracked separately: an invitation cannot be cancelled --
there is no pending-invitations screen and no revoke, so letting one expire
is the only way to take it back, which the self-service resend button then
undoes. Redemption also needs the address-availability check every other
non-form caller of ClientProvisioning makes.
Thanks @mash2k3.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CPk8qAs38pudYGWwmGkYPe
43 lines
1.1 KiB
PHP
43 lines
1.1 KiB
PHP
{{-- Laravel's HTML message layout, published so the header and the
|
|
copyright line read the installation's own name instead of the one
|
|
baked into config('app.name') at install time.
|
|
|
|
This is a copy of a framework view, so it does not follow Laravel
|
|
forward on its own. If an upgrade changes the layout, re-copy it and
|
|
re-apply the two-line change below. --}}
|
|
<?php
|
|
|
|
use App\Modules\Platform\Settings\Setting;
|
|
use App\Modules\Platform\Settings\Settings;
|
|
|
|
$siteName = app(Settings::class)->get(Setting::SiteName);
|
|
$siteName = is_string($siteName) ? $siteName : 'ProjectSend';
|
|
?>
|
|
<x-mail::layout>
|
|
{{-- Header --}}
|
|
<x-slot:header>
|
|
<x-mail::header :url="config('app.url')">
|
|
{{ $siteName }}
|
|
</x-mail::header>
|
|
</x-slot:header>
|
|
|
|
{{-- Body --}}
|
|
{!! $slot !!}
|
|
|
|
{{-- Subcopy --}}
|
|
@isset($subcopy)
|
|
<x-slot:subcopy>
|
|
<x-mail::subcopy>
|
|
{!! $subcopy !!}
|
|
</x-mail::subcopy>
|
|
</x-slot:subcopy>
|
|
@endisset
|
|
|
|
{{-- Footer --}}
|
|
<x-slot:footer>
|
|
<x-mail::footer>
|
|
© {{ date('Y') }} {{ $siteName }}. {{ __('All rights reserved.') }}
|
|
</x-mail::footer>
|
|
</x-slot:footer>
|
|
</x-mail::layout>
|