method
Store.RecordFailedLogin
Public method Store.RecordFailedLogin from github.com/riducms/ridu/adapters/postgres.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
collectionID | schema.StableID | The collectionID value. |
userID | string | The userID value. |
now | time.Time | The now value. |
maximum | int | The maximum value. |
lockDuration | time.Duration | The lockDuration value. |
Returns
The declared result.
(store.AuthCredential, error)Full signature
func (backend *Store) RecordFailedLogin(
ctx context.Context,
collectionID schema.StableID,
userID string,
now time.Time,
maximum int,
lockDuration time.Duration,
) (store.AuthCredential, error)Related types
StoreA PostgreSQL implementation of Ridu’s document, snapshot, auth, preference, task, job, lock, upload-reference, and migration store contracts.
StableIDA deterministic identifier for schema evolution.
AuthCredentialPrivate password and lockout state associated with one user document.