method

Store.UpgradePasswordHash

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

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

Source adapters/postgres/auth.go:78

@param ctx
The ctx value.
@param collection
The collection value.
@param userID
The userID value.
@param expectedPasswordHash
The expectedPasswordHash value.
@param hash
The hash value.
@returns
The declared result.

Related types

  • Store

    A PostgreSQL implementation of Ridu’s document, snapshot, auth, preference, task, job, lock, upload-reference, and migration store contracts.

  • Collection

    The resolved contract for a collection.