MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / validate

Method validate

keepercommander/loginv3.py:1341–1344  ·  view source on GitHub ↗
(self, document)

Source from the content-addressed store, hash-verified

1339 idx += 1
1340
1341 def validate(self, document):
1342 if self.word_count != 24:
1343 error = f'Expected 24 passphrase words. Got {self.word_count}. Press Ctrl-C to cancel current input.'
1344 raise ValidationError(cursor_position=document.cursor_position, message=error)
1345
1346
1347class InvalidDeviceToken(Exception):

Callers

nothing calls this directly

Calls 1

ValidationErrorClass · 0.50

Tested by

no test coverage detected