mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-22 22:13:57 +00:00
Major incomplete Change
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Account;
|
||||
|
||||
|
||||
use App\Models\UserInvitation;
|
||||
|
||||
class ShowRegistrationFormController
|
||||
{
|
||||
|
||||
/** @var UserInvitation */
|
||||
private $repository;
|
||||
|
||||
/**
|
||||
* ShowRegistrationFormController constructor.
|
||||
* @param UserInvitation $repository
|
||||
*/
|
||||
public function __construct(UserInvitation $repository)
|
||||
{
|
||||
$this->repository = $repository;
|
||||
}
|
||||
|
||||
|
||||
public function show(string $email, string $hash){
|
||||
$invite = $this->repository->where('email', $email)->where('hash', $hash)->first();
|
||||
|
||||
if($invite){
|
||||
return view('pages.authentication.registration', ['invite' => $invite]);
|
||||
}
|
||||
|
||||
return redirect()->route('login');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user