Sistema de controles da União de Ciclistas do Brasil
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 

47 lines
986 B

<?php
namespace App\Http\Livewire\Auth\Passwords;
use Livewire\Component;
use Illuminate\Support\Facades\Password;
class Email extends Component
{
/** @var string */
public $email;
/** @var string|null */
public $emailSentMessage = false;
public function sendResetPasswordLink()
{
$this->validate([
'email' => ['required', 'email'],
]);
$response = $this->broker()->sendResetLink(['email' => $this->email]);
if ($response == Password::RESET_LINK_SENT) {
$this->emailSentMessage = trans($response);
return;
}
$this->addError('email', trans($response));
}
/**
* Get the broker to be used during password reset.
*
* @return \Illuminate\Contracts\Auth\PasswordBroker
*/
public function broker()
{
return Password::broker();
}
public function render()
{
return view('livewire.auth.passwords.email');
}
}