Is there a way to force update user permissions or force loggout of specific user that currently have a session active? #13187
Answered
by
lampersky
JStafford00
asked this question in
Q&A
-
So, say I update a certain user's role, or disable a user's account. Is there a way that OC can force update the user's active session, or force them to logout? I've noticed that even after changing a user role or something similar that they are still able to view/modify content that they no longer have permission to view/modify as long as their current session is still active. |
Beta Was this translation helpful? Give feedback.
Answered by
lampersky
Jan 31, 2023
Replies: 1 comment 2 replies
-
you can force logout user using this code:
also you need to update your configuration (Startup.cs):
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
JStafford00
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can force logout user using this code:
also you need to update your configuration (Startup.cs):