fixed user registration issue
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run

This commit is contained in:
Edward Tirado Jr 2025-12-14 13:23:46 -06:00
parent 908d877cfb
commit f5664ce84b
9 changed files with 203 additions and 30 deletions

View file

@ -0,0 +1 @@

View file

@ -3,4 +3,5 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ $title ?? 'Movie Night' }}</title>
@vite(['resources/css/app.css', 'resources/js/app.js'])
@livewireStyles
</head>

View file

@ -3,6 +3,6 @@
<x-head/>
<body class="bg-blue-600">
{{ $slot }}
@livewireScriptConfig
@livewireScripts
</body>
</html>

View file

@ -1,26 +1,23 @@
<x-layouts.auth>
<div class="text-2xl">
<h1 class="text-center m-5">Create Account</h1>
<div class="text-2xl">
<h1 class="text-center m-5">Create Account</h1>
<form class="flex flex-col gap-5" wire:submit.prevent="register">
@csrf
@if($errors->any())
<div class="text-red-500">
@foreach($errors->all() as $error)
<p>{{$error}}</p>
@endforeach
</div>
@endif
<form class="flex flex-col gap-5" wire:submit.prevent="register">
@if($errors->any())
<div class="text-red-500">
@foreach($errors->all() as $error)
<p>{{$error}}</p>
@endforeach
</div>
@endif
<div class="flex flex-col">
<label class="py-5" for="username">Username</label>
<input class="bg-white" type="text" name="username" wire:model="form.username"/>
</div>
<div class="flex flex-col">
<label class="py-5" for="email">Email</label>
<input class="bg-white" type="email" name="email" wire:model="form.email"/>
</div>
<button type="submit" class="bg-green-400 text-white px-4 py-2 rounded">Submit</button>
</form>
</div>
</x-layouts.auth>
<div class="flex flex-col">
<label class="py-5" for="username">Username</label>
<input class="bg-white" type="text" wire:model="form.username"/>
</div>
<div class="flex flex-col">
<label class="py-5" for="email">Email</label>
<input class="bg-white" type="email" wire:model="form.email"/>
</div>
<button type="submit" class="bg-green-400 text-white px-4 py-2 rounded">Submit</button>
</form>
</div>