Enhancing error message

This commit is contained in:
Kcchouette
2023-12-12 13:14:23 +01:00
committed by GitHub
parent 9b0b0c861e
commit 07a088bcb5
@@ -44,7 +44,7 @@ class ForgotPasswordController extends Controller
$email = $request->input('email') ?? '';
$rssToken = $request->input('apikey') ?? '';
if (empty($email) && empty($rssToken)) {
app('smarty.view')->assign('error', 'Missing parameter(email and/or apikey to send password reset');
app('smarty.view')->assign('error', 'Missing parameter (email and/or apikey) to send password reset');
} else {
if (config('captcha.enabled') === true && (! empty(config('captcha.secret')) && ! empty(config('captcha.sitekey')))) {
$this->validate($request, [