validate_password Method
Validates a Time-Based or HMAC-Based One Time Password.
Syntax
def validate_password() -> bool: ...
Remarks
This method validates a Time-Based or HMAC-Based One Time Password. The password_algorithm property specifies which algorithm to use.
The following properties are applicable when calling on_validate_password.
- password (required)
- password_algorithm
- secret (required)
- counter (required for HMAC-Based One Time Password)
- time_step (applicable for Time-Based One Time Password)
The method will return True if the password is validated, False otherwise.