SREd-URV / moodle-auth_ip

Manual authentication plugin that prevents access to your Moodle from different IPs than those allowed.
GNU General Public License v3.0
1 stars 6 forks source link

Modify auth.php IP eval #8

Closed CaxtonTaylor closed 7 years ago

CaxtonTaylor commented 7 years ago

Currently the plugin only gets the users IP form REMOTE_ADDR wich is not an entirely reliable source. a much better source would be the getremoteaddr() function since this is the one moodle uses in the reports. This also prevents issues wen moodle is implemented behind a load balancer. I tested the change in my server and it works like a charm