GraseHotspot / grase-www-portal

Grase WWW Portal (Main Package)
51 stars 20 forks source link

Feature Request: Free Login Toggle #131

Open mxkz01 opened 9 years ago

mxkz01 commented 9 years ago

Hi Tim,

It would be handy to have a simple way to enable or disable Free User Access without the need to add and remove the Group Name from the Portal Customization page.

Use Case - On-site staff aren't IT savvy and having a simple way to either enable or disable free user access would be great. Different groups on-site are provided with Free Internet and other groups (such as schools) need Free Internet access disabled (require a voucher for Internet).

Power Users in the Web Interface don't have access to Toggle Free Access on and off, however they do have access to manage users and monitor sessions. Having a checkbox for Power Users to toggle on and off Free Access would be fantastic as we don't really want them changing the group settings, just being able to enable/disable Free Access.

Also, it would be really nice to have a security ID attached to each user (that can be randomly generated and overwritten in case of a breach from the UI) so that certain functions can be completed using a URL GET Request, for example enabling and disabling the Free Access option in Grase -

http://SERVER-URL/setfree.php?key=SECRET-KEY&free=enable http://SERVER-URL/setfree.php?key=SECRET-KEY&free=disable

This would allow bookmarks to be placed on an iPad/iPhone Home Screen to quickly enable and disable Free Internet Access on-site (especially if staff are working around the property and need to turn off Free Internet quickly). These URLs could be attached to buttons on an IP Phone too for the same functionality.

Sample code from a little web app we created to achieve the URL request can be found in the original thread -> https://groups.google.com/a/grasehotspot.org/forum/#!topic/grase-hotspot/HxOOa4n5Fmw (however this would be different if the checkbox was implemented).

Thanks for your consideration.

Michael