Robin S Posted May 15, 2016 Share Posted May 15, 2016 My project allows paying users access to protected front-end content and my client is concerned about users sharing their login details among a group rather than each purchasing an individual account. Of course there is only so much you can do to protect against this and there will always be loopholes, but I'm wondering if I can provide some basic protection against this. My idea is a maximum of two IP addresses may be simultaneously logged in to any user account, but I'm not sure where to start with implementing this. Is there an existing module or snippet that would give me a starting point for limiting simultaneous logins? I'm also interested in hearing any other ideas for tackling this issue. Thanks. Link to comment Share on other sites More sharing options...
cstevensjr Posted May 15, 2016 Share Posted May 15, 2016 The best place to look is here: http://modules.processwire.com/categories/users-access/ I remember there being a module that tackled this issue. Regardless, there are many talented individuals on this forum who should chime in with a solid solution. Good luck. 1 Link to comment Share on other sites More sharing options...
Bill C Posted May 16, 2016 Share Posted May 16, 2016 Hi, I see this module : http://modules.processwire.com/modules/login-notifier/ Written by Mr. Cramer himself. I have not done any coding for user-member/access functionality in Processwire so I can't speak from experience, sorry. I would say that that module by Ryan might contain what you need or at least point you in the right direction. Can't hurt to look. Then you also have the API. - https://processwire.com/api/variables/user/ And last but not least - http://cheatsheet.processwire.com/user/user-methods/user-isloggedin/ Ok.. maybe not the last.. I found this also https://processwire.com/talk/topic/9811-frontenduser-login-logout-and-register-users-members/ . Read the features list. It has functionality to check for a user who is already logged on. Hope the above helps. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now