Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jan 3, 2019
1 parent c35951c commit f748c2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,10 @@

All notable changes to `laravel-honeypot` will be documented in this file

## 1.1.0 - 2018-01-03

- add randomized name field name

## 1.0.2 - 2018-12-27

- fix view hint path
Expand Down
3 changes: 1 addition & 2 deletions src/ProtectAgainstSpam.php
Expand Up @@ -23,10 +23,9 @@ public function handle(Request $request, Closure $next): Response
return $next($request);
}

$randomizeNameFieldName = config('honeypot.randomize_name_field_name');
$nameFieldName = config('honeypot.name_field_name');

if ($randomizeNameFieldName) {
if (config('honeypot.randomize_name_field_name')) {
$nameFieldName = $this->getRandomizedNameFieldName($nameFieldName, $request->all());
}

Expand Down

0 comments on commit f748c2b

Please sign in to comment.