Skip to content

Commit

Permalink
Added remove_user from lims
Browse files Browse the repository at this point in the history
  • Loading branch information
antolinos authored and marcus-oscarsson committed Dec 16, 2024
1 parent 4f079cf commit fb741fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mxcubeweb/core/components/user/usermanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit fb741fe

Please sign in to comment.