Skip to content

Commit

Permalink
Addressed GPDR rules for popularity #1436
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed May 15, 2018
1 parent fd2f58d commit 55a56ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# v1.8.1
## mm/dd/2018

1. [](#improved)
* use SHA1 hashing of IP addressed to support GPDR rules [#1436](https://github.com/getgrav/grav-plugin-admin/pull/1436)
1. [](#bugfix)
* Fixed 2FA form showing up even if user has not turned on the feature [#1442](https://github.com/getgrav/grav-plugin-admin/issues/1442)

Expand Down
2 changes: 1 addition & 1 deletion classes/popularity.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ protected function updateVisitors($ip)
}

// update with current timestamp
$this->visitors_data[$ip] = time();
$this->visitors_data[hash('sha1', $ip)] = time();
$visitors = $this->visitors_data;
arsort($visitors);

Expand Down

0 comments on commit 55a56ff

Please sign in to comment.