nexcess / magento-sentry-two-factor-authentication

28 stars 18 forks source link

Bug with PHP 5.3 #21

Closed matiasserrano closed 7 years ago

matiasserrano commented 7 years ago

Using PHP 5.3 this function from the helper breaks login.

private function getIPWhitelist() { $return = []; ... }

This should be changed to

private function getIPWhitelist() { $return = array(); ... }

miguelbalparda commented 7 years ago

PHP 5.3 EOL was 2 years and 4 months ago, I strongly suggest you to use an updated version of PHP to avoid issues with this and any other module.