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

Method validate

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

Source from the content-addressed store, hash-verified

1348 idx += 1
1349
1350 def validate(self, document):
1351 if self.word_count != 24:
1352 error = f'Expected 24 passphrase words. Got {self.word_count}. Press Ctrl-C to cancel current input.'
1353 raise ValidationError(cursor_position=document.cursor_position, message=error)
1354
1355
1356class InvalidDeviceToken(Exception):

Callers

nothing calls this directly

Calls 1

ValidationErrorClass · 0.50

Tested by

no test coverage detected