method

Store.ResetPasswordWithToken

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

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
collectionIDschema.StableIDThe collectionID value.
tokenHashstringThe tokenHash value.
hash[]byteThe hash value.
nowtime.TimeThe now value.

Returns

The declared result.

(string, error)

Full signature

func (backend *Store) ResetPasswordWithToken( ctx context.Context, collectionID schema.StableID, tokenHash string, hash []byte, now time.Time, ) (string, error)

Source adapters/postgres/auth.go:377

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.