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

Method check_privateKey

src/astroprint/users.py:353–354  ·  view source on GitHub ↗
(self, privateKey)

Source from the content-addressed store, hash-verified

351 return self._passwordHash == passwordHash
352
353 def check_privateKey(self, privateKey):
354 return self.privateKey == privateKey
355
356 def check_pin(self, pin):
357 return not self.has_pin() or self._pinHash == UserManager.createPasswordHash(pin)

Callers 1

signinWithKeyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected