0
thomas created
Hi all,
We want to use the OnlineClient/OnlineClientManager to prevent a user from multiplie login from different machines.
How to implement the OnlineClient/OnlineClientManager to check if the same user is already logged in and popup a message to - "Current user is already logged in"
Thank you Kind regards, Thomas
2 Answer(s)
-
0
Hi,
On the login method, after getting user's id and tenantId, you can use OnlineClientManager's IsOnline or GetAllByUserId extension methods to check if user is already online or already has a connected client.
The you can cancel (signout ) the current login attepmt and return appropriate response to client.
-
0
hi,
thank you - working :)