diff --git a/resources/views/auth/forgot-password.blade.php b/resources/views/auth/forgot-password.blade.php index 3f815646b..04a9a5695 100644 --- a/resources/views/auth/forgot-password.blade.php +++ b/resources/views/auth/forgot-password.blade.php @@ -15,7 +15,7 @@ @if (is_transactional_emails_active())
@csrf - {{ __('auth.forgot_password_send_email') }} diff --git a/routes/web.php b/routes/web.php index a18af5df0..a8ae08aa4 100644 --- a/routes/web.php +++ b/routes/web.php @@ -30,6 +30,10 @@ Route::post('/forgot-password', function (Request $request) { if (is_transactional_emails_active()) { + $arrayOfRequest = $request->only(Fortify::email()); + $request->merge([ + 'email' => Str::lower($arrayOfRequest['email']), + ]); $type = set_transanctional_email_settings(); if (!$type) { return response()->json(['message' => 'Transactional emails are not active'], 400);