"resources/git@sites.upe.br:walter.felipe/submeta.git" did not exist on "b8b68612bb817fd8694a09a7daaebd41170d033d"
Commit bb51a3fe authored by Gabriel-31415's avatar Gabriel-31415
Browse files

ajuste em emailParaUsuarioNaoCadastrado

parent b83715ab
...@@ -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),
......
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