Iâ€™d like to store up to three IP addresses in the Allowed IP Address field for each user, so that they can login from up to three different locations but no others (so they donâ€™t share their login details with everyone else in the company - itâ€™s a paid service).
My coding skills are terrible, but I guess I need the code to check against the field to see if the existing IP address matches the one stored, and if so, do nothing, and if not, check how many characters are stored in the Allowed IP Address field, and if under 51 (allowing for commas between IP addresses), append a comma and the IP address, and if over 51, provide a message to say they need to get in touch with the company.
Has anyone else implemented something like this?
It would be better to make a plugin to check the allowed IP address field and deny the login if itâ€™s not allowed. No need to hack the MODx code.
Yes, via a plugin...of course...still no idea how to code it.