An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: lowercase email in forgot password
Andras Bacsaib22fecb615af
diff --git a/resources/views/auth/forgot-password.blade.php b/resources/views/auth/forgot-password.blade.phpindex 3f815646b2..04a9a56952 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())<form action="/forgot-password" method="POST" class="flex flex-col gap-2">@csrf- <x-forms.input required value="[email protected]" type="email" name="email"+ <x-forms.input required type="email" name="email"label="{{ __('input.email') }}" autofocus /><x-forms.button type="submit">{{ __('auth.forgot_password_send_email') }}</x-forms.button></form>diff --git a/routes/web.php b/routes/web.phpindex a18af5df03..a8ae08aa4b 100644--- a/routes/web.php+++ b/routes/web.php@@ -30,6 +30,10 @@ use Laravel\Fortify\Fortify;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);