MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / reset

Method reset

web/pgadmin/utils/__init__.py:954–962  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

952
953 @login_required
954 def reset(self):
955 with self.lock:
956 user = self.users.get(current_user.id, None)
957
958 if user is not None:
959 # This will not decrement if session expired
960 user['session_count'] -= 1
961 if user['session_count'] == 0:
962 del self.users[current_user.id]
963
964 @login_required
965 def hard_reset(self):

Callers 3

current_user_cleanupFunction · 0.45
resetFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected