MCPcopy Create free account
hub / github.com/Syncplay/syncplay / _checkPassword

Method _checkPassword

syncplay/protocols.py:513–521  ·  view source on GitHub ↗
(self, serverPassword)

Source from the content-addressed store, hash-verified

511 return username, serverPassword, roomName, version, features
512
513 def _checkPassword(self, serverPassword):
514 if self._factory.password:
515 if not serverPassword:
516 self.dropWithError(getMessage("password-required-server-error"))
517 return False
518 if serverPassword != self._factory.password:
519 self.dropWithError(getMessage("wrong-password-server-error"))
520 return False
521 return True
522
523 def handleHello(self, hello):
524 username, serverPassword, roomName, version, features = self._extractHelloArguments(hello)

Callers 1

handleHelloMethod · 0.95

Calls 2

dropWithErrorMethod · 0.95
getMessageFunction · 0.90

Tested by

no test coverage detected