Skip to content

Commit

Permalink
Sign up link meta
Browse files Browse the repository at this point in the history
  • Loading branch information
0x1DEA committed Sep 8, 2023
1 parent b0db29e commit 828acaf
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions app/Http/Controllers/System/Auth/RegisteredUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use App\Models\System\User;
use App\Providers\RouteServiceProvider;
use App\Yggdrasil;
use Illuminate\Contracts\Support\Responsable;
use function event;
use Illuminate\Auth\Events\Registered;
use Illuminate\Contracts\Auth\StatefulGuard;
Expand Down Expand Up @@ -43,13 +44,18 @@ public function __construct(StatefulGuard $guard)
/**
* Show the registration view.
*
* @return Response
* @return Responsable
*/
public function create(): Response
public function create(): Responsable
{
return Inertia::render('Auth/Register', [
$invite = '';
if (request()->has('invite')) {
$invite = ' You\'ve been invited to join!';
}

return page('Auth/Register', [
'invite' => request('invite')
]);
])->meta('GD Forums | Sign Up', 'Sign up for GD Forums, your source for everything Geometry Dash!' . $invite);
}

/**
Expand Down

0 comments on commit 828acaf

Please sign in to comment.