On Monday, September 30, 2019 at 2:12:13 AM UTC-7, Accessorize Withwah wrote: > > Is there a way to prevent a user from logging into my application multiple > times maybe using different devices or from different locations? > I came across some information somewhere that one could use* > check_client=True*, I'm just not sure how it works & if it can help me > achieve my task. > > Thank you > > WaH >
I think that the last time this came up, it was recommended to set a flag in an auth extra field., and to check that flag. It sounds like you only need to check on login, unless you want to prevent multiple tabs from one browser, which would require the post to include more information. The check_client setting doesn't ring any bells. and there doesn't seem to be anything in the book about it. However, search the archives of the group. (I would be skeptical of any post from before 2016, though, because of the evolution of web2py). /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/1598abbf-25a7-4ea8-933f-85f827c50093%40googlegroups.com.

