@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | if (empty($email) && empty($rssToken)) { |
47 | 47 | app('smarty.view')->assign('error', 'Missing parameter (email and/or apikey) to send password reset'); |
48 | 48 | } else { |
49 | - if (config('captcha.enabled') === true && (! empty(config('captcha.secret')) && ! empty(config('captcha.sitekey')))) { |
|
49 | + if (config('captcha.enabled') === true && (!empty(config('captcha.secret')) && !empty(config('captcha.sitekey')))) { |
|
50 | 50 | $this->validate($request, [ |
51 | 51 | 'g-recaptcha-response' => 'required|captcha', |
52 | 52 | ]); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | // |
55 | 55 | // Check users exists and send an email |
56 | 56 | // |
57 | - $ret = ! empty($rssToken) ? User::getByRssToken($rssToken) : User::getByEmail($email); |
|
57 | + $ret = !empty($rssToken) ? User::getByRssToken($rssToken) : User::getByEmail($email); |
|
58 | 58 | if ($ret === null) { |
59 | 59 | app('smarty.view')->assign('error', 'The email or apikey are not recognised.'); |
60 | 60 | $sent = true; |