Method SetPasswordHashAsync(IRedbUser, string, IRedbUser?, CancellationToken)

Assembly: redb.Core.dll

Store a password hash computed elsewhere, for example an administrator password given in
configuration as a hash rather than in plain text. The hash is written as is, so it must be
one the configured verifies: with the
default hasher, a BCrypt hash (\(2a\), \(2b\) or \(2y\)).
Same access rules as .

Task<bool> SetPasswordHashAsync(IRedbUser user, string passwordHash, IRedbUser? currentUser = null, CancellationToken cancellationToken = default)