@@ -42,16 +42,16 @@ |
||
42 | 42 | if (empty($email) && empty($rssToken)) { |
43 | 43 | app('smarty.view')->assign('error', 'Missing parameter (email and/or apikey) to send password reset'); |
44 | 44 | } else { |
45 | - if (config('captcha.enabled') === true && (! empty(config('captcha.secret')) && ! empty(config('captcha.sitekey')))) { |
|
45 | + if (config('captcha.enabled') === true && (!empty(config('captcha.secret')) && !empty(config('captcha.sitekey')))) { |
|
46 | 46 | $captcha = app('captcha'); |
47 | - if (! $captcha->validate($request)) { |
|
47 | + if (!$captcha->validate($request)) { |
|
48 | 48 | app('smarty.view')->assign('error', 'Captcha validation failed.'); |
49 | 49 | } |
50 | 50 | } |
51 | 51 | // |
52 | 52 | // Check users exists and send an email |
53 | 53 | // |
54 | - $ret = ! empty($rssToken) ? User::getByRssToken($rssToken) : User::getByEmail($email); |
|
54 | + $ret = !empty($rssToken) ? User::getByRssToken($rssToken) : User::getByEmail($email); |
|
55 | 55 | if ($ret === null) { |
56 | 56 | app('smarty.view')->assign('error', 'The email or apikey are not recognised.'); |
57 | 57 | } else { |