From fb741fe32c752dc390acbb51aab41101333766fa Mon Sep 17 00:00:00 2001 From: Alejandro De Maria Antolinos Date: Tue, 10 Dec 2024 14:25:19 +0100 Subject: [PATCH] Added remove_user from lims --- mxcubeweb/core/components/user/usermanager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mxcubeweb/core/components/user/usermanager.py b/mxcubeweb/core/components/user/usermanager.py index b6dff7f4..762f1cc6 100644 --- a/mxcubeweb/core/components/user/usermanager.py +++ b/mxcubeweb/core/components/user/usermanager.py @@ -413,6 +413,7 @@ def _login(self, login_id: str, password: str) -> LimsSessionManager: "_login. proposal_tuple retrieved. Sessions=%s " % str(len(session_manager.sessions)) ) + inhouse = self.is_inhouse_user(login_id) active_users = self.active_logged_in_users() @@ -460,6 +461,7 @@ def _login(self, login_id: str, password: str) -> LimsSessionManager: def _signout(self, sso_data={}): if self.app.CONFIG.sso.LOGOUT_URI: if not current_user.is_anonymous: + HWR.beamline.lims.remove_user(current_user.username) refresh_token = current_user.refresh_token else: refresh_token = sso_data.get("refresh_token", None)