You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
741 B
32 lines
741 B
<?php
|
|
|
|
namespace App\Livewire\Forms\Auth;
|
|
|
|
use Illuminate\Validation\Rules\Password as PasswordRule;
|
|
use Livewire\Attributes\Url;
|
|
use Livewire\Attributes\Validate;
|
|
use Livewire\Form;
|
|
|
|
class ResetPasswordForm extends Form
|
|
{
|
|
#[Validate(['required'])]
|
|
public string $token = '';
|
|
|
|
#[Url('email')]
|
|
#[Validate(['required', 'email'])]
|
|
public string $email = '';
|
|
|
|
#[Validate(['required', 'confirmed'])]
|
|
public string $password = '';
|
|
|
|
public string $password_confirmation = '';
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'token' => ['required'],
|
|
'email' => ['required', 'email'],
|
|
'password' => ['required', 'confirmed', PasswordRule::defaults()],
|
|
];
|
|
}
|
|
}
|
|
|