Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sistema_mcid
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
marcio neto
sistema_mcid
Commits
956bbf7b
Commit
956bbf7b
authored
Jul 31, 2023
by
sandroresende
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correcao traducao email reset senha
parent
cbf441f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
1 deletion
+35
-1
AuthServiceProvider.php
app/Providers/AuthServiceProvider.php
+34
-0
app.php
config/app.php
+1
-1
No files found.
app/Providers/AuthServiceProvider.php
View file @
956bbf7b
...
...
@@ -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.'
);
});
...
...
config/app.php
View file @
956bbf7b
...
...
@@ -78,7 +78,7 @@ return [
|
*/
'locale'
=>
'pt-
BR
'
,
'locale'
=>
'pt-
br
'
,
/*
|--------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment