@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | if (empty($email) && empty($rssToken)) { |
44 | 44 | app('smarty.view')->assign('error', 'Missing parameter (email and/or apikey) to send password reset'); |
45 | 45 | } else { |
46 | - if (config('captcha.enabled') === true && (! empty(config('captcha.secret')) && ! empty(config('captcha.sitekey')))) { |
|
46 | + if (config('captcha.enabled') === true && (!empty(config('captcha.secret')) && !empty(config('captcha.sitekey')))) { |
|
47 | 47 | $validate = Validator::make($request->all(), [ |
48 | 48 | 'g-recaptcha-response' => 'required|captcha', |
49 | 49 | ]); |
@@ -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 | } else { |