method

Store.RecordFailedLogin

func (backend *Store) RecordFailedLogin( ctx context.Context, collectionID schema.StableID, userID string, now time.Time, maximum int, lockDuration time.Duration, ) (store.AuthCredential, error)

Public method Store.RecordFailedLogin from github.com/riducms/ridu/adapters/postgres.

Source adapters/postgres/auth.go:127

@param ctx
The ctx value.
@param collectionID
The collectionID value.
@param userID
The userID value.
@param now
The now value.
@param maximum
The maximum value.
@param lockDuration
The lockDuration value.
@returns
The declared result.

Related types

  • Store

    A PostgreSQL implementation of Ridu’s document, snapshot, auth, preference, task, job, lock, upload-reference, and migration store contracts.

  • StableID

    A deterministic identifier for schema evolution.

  • AuthCredential

    Private password and lockout state associated with one user document.