MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / getLoggedUser

Method getLoggedUser

src/astroprint/users.py:26–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

24 return None
25
26 def getLoggedUser(self):
27 loggedUser = settings().get(['cloudSlicer', 'loggedUser'])
28 if loggedUser:
29 return self.findUser(loggedUser)
30
31 return None
32
33 def addUser(self, username, password, publicKey, privateKey, orgId, groupId, active, roles):
34 pass

Callers 1

validate_pinFunction · 0.80

Calls 3

findUserMethod · 0.95
settingsFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected