问题
I'm currently facing the situation, that the ZendFramework2
ZFCuser-Module
does not have any options to prevent a user from logging in from two devices at the same time.
We recently had a case, that two people were "account-sharing" and accidentally deleted each others data. Since I did not build the application to account for this kind of resource conflicts, I need to prevent this behaviour now.
Is there any module or easy possibility out there to prevent account-sharing in Zend Framework 2 with ZFCUser
?
The docs and SO and all sorts of ZF2 blogs somehow appear to never have come across this type of problem...
Thanks in advance!
来源:https://stackoverflow.com/questions/30456921/how-to-disallow-multiple-parallel-user-sessions-per-login-in-zf2