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)