Skip to content

Commit

Permalink
Fix Geo Location Token only allowing string
Browse files Browse the repository at this point in the history
Fixes #343
  • Loading branch information
Tam committed May 18, 2022
1 parent 41bd10d commit 31657b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.0.1 - 2022-05-18
### Fixed
- Fix Geo Location Token only allowing string (Fixes #343)

## 4.0.0 - 2022-05-10
### Fixed
- Mostly functional, only slightly buggy, Craft 4 Support
Expand Down
4 changes: 2 additions & 2 deletions src/models/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ class Settings extends Model
/** @var string The geo-location service */
public string $geoLocationService = GeoLocationService::None;

/** @var string The token for the geo-location service */
public string $geoLocationToken = '';
/** @var string|array The token for the geo-location service */
public string|array $geoLocationToken = '';

/** @var string|int How long to cache IP look-ups for (set to 0 to disable caching) */
public string|int $geoLocationCacheDuration = 'P2M';
Expand Down

0 comments on commit 31657b0

Please sign in to comment.