method

Store.RecordFailedLogin

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

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
collectionIDschema.StableIDThe collectionID value.
userIDstringThe userID value.
nowtime.TimeThe now value.
maximumintThe maximum value.
lockDurationtime.DurationThe 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)

Source adapters/postgres/auth.go:128

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.