Commit 89a6c970 authored by alissonalbuquerque's avatar alissonalbuquerque
Browse files

refatoração de envio de email

parent 10fd7287
......@@ -69,7 +69,7 @@ class NewPasswordController extends Controller
// the application's home authenticated view. If there is an error we can
// redirect them back to where they came from with their error message.
return $status == Password::PASSWORD_RESET
? redirect()->route('login')->with('status', __($status))
? redirect()->route('login')->with('success', 'Sua senha foi alterada com sucesso!')
: back()->withInput($request->only('email'))
->withErrors(['email' => __($status)]);
}
......
......@@ -8,12 +8,12 @@
<div class="col-md-12 col-lg-7">
<div class="login-wrap">
<!-- Session Status -->
<x-auth-session-status class="mb-4" :status="session('status')" />
<!-- Validation Errors -->
<x-auth-validation-errors class="alert alert-danger mb-2" :errors="$errors" />
<!-- Session Status -->
@include('components.alerts')
<form action="{{ route('login') }}" method="POST" class="signin-form d-md-flex">
@csrf
......
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