Django How to prevent multiple users login using the same credentials

后端 未结 3 2211
南旧
南旧 2020-12-16 04:54

I am developing an Django application using django auth module and would like to prevent multiple login using the same user name and password.

It should prevent mult

3条回答
  •  情话喂你
    2020-12-16 05:37

    Out of the box, Django doesn't provide you with a way to prevent concurrent sessions for the same user account, and that isn't a trivial thing to do. However, here's another question with some suggestions about how you might make this happen: How can I detect multiple logins into a Django web application from different locations?

提交回复
热议问题