Commit 956bbf7b authored by sandroresende's avatar sandroresende

correcao traducao email reset senha

parent cbf441f3
......@@ -2,12 +2,28 @@
namespace App\Providers;
use Illuminate\Auth\Notifications\ResetPassword;
use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
* The password reset token.
*
* @var string
*/
public $token;
/**
* The callback that should be used to build the mail message.
*
* @var \Closure|null
*/
public static $toMailCallback;
/**
* The policy mappings for the application.
*
......@@ -39,6 +55,24 @@ class AuthServiceProvider extends ServiceProvider
}
return false;
});
ResetPassword::toMailUsing( function($notifiable) {
if (static::$toMailCallback) {
return call_user_func(static::$toMailCallback, $notifiable, $this->token);
}
return (new MailMessage)
->subject('Notificação de resete de Senha')
->line('Você está recebendo este e-mail porque recebemos uma solicitação de redefinição de senha para sua conta.')
->action('Resetar senha', url(config('app.url').route('password.reset', $this->token, false)))
->line('Se você não solicitou uma redefinição de senha, nenhuma outra ação será necessária.');
});
......
......@@ -78,7 +78,7 @@ return [
|
*/
'locale' => 'pt-BR',
'locale' => 'pt-br',
/*
|--------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment