Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
bb51a3fe
Commit
bb51a3fe
authored
Jul 11, 2020
by
Gabriel-31415
Browse files
ajuste em emailParaUsuarioNaoCadastrado
parent
b83715ab
Changes
1
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
bb51a3fe
...
@@ -678,7 +678,8 @@ class TrabalhoController extends Controller
...
@@ -678,7 +678,8 @@ class TrabalhoController extends Controller
$userParticipante
=
User
::
where
(
'email'
,
$value
)
->
first
();
$userParticipante
=
User
::
where
(
'email'
,
$value
)
->
first
();
if
(
$userParticipante
==
null
){
if
(
$userParticipante
==
null
){
$passwordTemporario
=
Str
::
random
(
8
);
$passwordTemporario
=
Str
::
random
(
8
);
Mail
::
to
(
$value
)
->
send
(
new
EmailParaUsuarioNaoCadastrado
(
Auth
()
->
user
()
->
name
,
' '
,
'Participante'
,
$evento
->
nome
,
$passwordTemporario
));
$subject
=
"Participante de Projeto"
;
Mail
::
to
(
$value
)
->
send
(
new
EmailParaUsuarioNaoCadastrado
(
Auth
()
->
user
()
->
name
,
' '
,
'Participante'
,
$evento
->
nome
,
$passwordTemporario
,
$subject
));
$usuario
=
User
::
create
([
$usuario
=
User
::
create
([
'email'
=>
$value
,
'email'
=>
$value
,
'password'
=>
bcrypt
(
$passwordTemporario
),
'password'
=>
bcrypt
(
$passwordTemporario
),
...
...
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