method

Store.ChangePasswordHash

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

Arguments

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

Returns

The declared result.

error

Full signature

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

Source adapters/mongodb/auth.go:265

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.