I'm showing Please verify your email before login in my login blade if user didn't verify his account through email link.
if ($user->is_verified == 0) {
$request->session()->flash("failed", "Please verify your email before login );
return redirect('/login');
}
And in my blade I do like this to catch it
@if (Session::has('failed'))
<div class="alert alert-danger">
.<br><br>
</div>
@endif
But Now I have to add this message Please verify your email before login or resend the verification email and make resend part with href to a route. Any ideas ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire