method

Store.UpgradePasswordHash

Public method Store.UpgradePasswordHash from github.com/riducms/ridu/adapters/sqlite.

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) UpgradePasswordHash( ctx context.Context, collection schema.Collection, userID string, expectedPasswordHash, hash []byte, ) error

Source adapters/sqlite/auth.go:72

Related types

  • Store

    A SQLite implementation of Ridu’s document, snapshot, auth, preference, task, lock, version, and migration store contracts.

  • Collection

    The resolved contract for a collection.