Skip to content

Commit 68c2102

Browse files
author
kreaweb.be
committed
Undo patch Jetstream Team Invitations
1 parent df45854 commit 68c2102

File tree

3 files changed

+14
-31
lines changed

3 files changed

+14
-31
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
@component('mail::message')
22
{{ __('You have been invited to join the :team team!', ['team' => $invitation->team->name]) }}
33

4-
{{ __('You may accept this invitation by clicking the button below and logging in:') }}
4+
@if (Laravel\Fortify\Features::enabled(Laravel\Fortify\Features::registration()))
5+
{{ __('If you do not have an account, you may create one by clicking the button below. After creating an account, you may click the invitation acceptance button in this email to accept the team invitation:') }}
56

6-
@component('mail::button', ['url' => $acceptUrl])
7-
{{ __('Accept Invitation') }}
7+
@component('mail::button', ['url' => route('register')])
8+
{{ __('Create Account') }}
89
@endcomponent
910

10-
@if (Laravel\Fortify\Features::enabled(Laravel\Fortify\Features::registration()))
11-
{{ __('If you do not have an account yet, click the register link on the login page. After creating an account, you will be automatically added to the team.') }}
11+
{{ __('If you already have an account, you may accept this invitation by clicking the button below:') }}
12+
13+
@else
14+
{{ __('You may accept this invitation by clicking the button below:') }}
1215
@endif
1316

17+
18+
@component('mail::button', ['url' => $acceptUrl])
19+
{{ __('Accept Invitation') }}
20+
@endcomponent
21+
1422
{{ __('If you did not expect to receive an invitation to this team, you may discard this email.') }}
15-
@endcomponent
23+
@endcomponent

resources/views/emails/team-invitation.original.blade.php

-23
This file was deleted.

routes/web.php

-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<?php
22

3-
use App\Http\Controllers\TeamInvitationController;
43
use Illuminate\Support\Carbon;
54
use Illuminate\Support\Facades\Route;
6-
use Laravel\Jetstream\Jetstream;
75

86
// -----------------------------------------------------------------------------------------------
97
// frontend routes

0 commit comments

Comments
 (0)