mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
152 - Validating Promoter Registration
This commit is contained in:
@@ -14,6 +14,11 @@ class RegisterController extends Controller
|
||||
$invitation = Invitation::findByCode(request('invitation_code'));
|
||||
abort_if($invitation->hasBeenUsed(), 404);
|
||||
|
||||
request()->validate([
|
||||
'email' => ['required', 'email', 'unique:users'],
|
||||
'password' => ['required'],
|
||||
]);
|
||||
|
||||
$user = User::create([
|
||||
'email' => request('email'),
|
||||
'password' => bcrypt(request('password')),
|
||||
|
||||
Reference in New Issue
Block a user