mfreiholz / persistent_login

Provides a "Keep me logged in" aka "Remember Me" functionality for Roundcube.
79 stars 50 forks source link

Only enable for configured IP/Subnet-Ranges #29

Closed mfreiholz closed 8 years ago

mfreiholz commented 8 years ago

Add possibility to to configure a white-list of IPs and subnets, which are a allowed to use the "Remember Me" functionality.

ygreenfield commented 8 years ago

Maybe change "which are allowed to use" to "which are able to see" the "Remember Me" functionality, so that if the IP is not in the allowed subnet, the Remember Me does not appear altogether. Thanks so much!

mfreiholz commented 8 years ago

You can test it by downloading the package from master branch: https://github.com/mfreiholz/Roundcube-Persistent-Login-Plugin/archive/master.zip Please let me know if it works as expected.

Enable IP check by config The config.inc.php got a new entry. See this example, which only allows two subnets to use the "remember me" functionality:

$rcmail_config['ifpl_netmask_whitelist'] = array('10.10.0.0/24', '127.0.0.1/32');
ygreenfield commented 8 years ago

Amazing! Will do.


From: Manuel Freiholz [mailto:notifications@github.com] Sent: Sunday, February 21, 2016 2:52 AM To: mfreiholz/Roundcube-Persistent-Login-Plugin Cc: ygreenfield Subject: Re: [Roundcube-Persistent-Login-Plugin] Only enable for configured IP/Subnet-Ranges (#29)

You can test it by downloading the package from master branch: https://github.com/mfreiholz/Roundcube-Persistent-Login-Plugin/archive/maste r.zip Please let me know if it works as expected.

Enable IP check by config The config.inc.php got a new entry. See this example, which only allows two subnets to use the "remember me" functionality:

$rcmail_config['ifpl_netmask_whitelist'] = array('10.10.0.0/24', '127.0.0.1/32');

Reply to this email directly or view https://github.com/mfreiholz/Roundcube-Persistent-Login-Plugin/issues/29#is suecomment-186770280 it on GitHub. https://github.com/notifications/beacon/AQggDHO0OyU6PVS5pIAySeY2gLQBUVjrks5 pmWQNgaJpZM4HczQr.gif