INNER CODE UNIT · Python
persist_credential
BlessedRebuS/Krawl · src/database/core.py:574
def persist_credential(
self,
ip: str,
path: str,
username: str | None = None,
password: str | None = None,
) -> int | None:
"""
Persist a credential attempt to the database.
Args:
ip: Client IP address
path: Login form path
username: Submitted username
password: Submitted password
Returns:
The ID of the created CredentialAttempt record, or None on error