method

Store.SetPasswordHash

Public method Store.SetPasswordHash from github.com/riducms/ridu/adapters/mongodb.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
collectionschema.CollectionThe collection value.
userIDstringThe userID value.
hash[]byteThe hash value.
initiallyVerifiedboolThe initiallyVerified value.

Returns

The declared result.

error

Full signature

func (backend *Store) SetPasswordHash( ctx context.Context, collection schema.Collection, userID string, hash []byte, initiallyVerified bool, ) error

Source adapters/mongodb/auth.go:194

Related types

  • Store

    A replica-set implementation of Ridu’s document, snapshot, auth, preference, task, lock, upload, readiness, and migration contracts.

  • Collection

    The resolved contract for a collection.