1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-07-09 01:05:31 +02:00

password hashing via hasher (defaults: bcrypt)

This commit is contained in:
Evghenii Maslennikov
2022-04-18 23:42:02 +03:00
committed by Stephen Afam-Osemene
parent ccfe4d1c31
commit 42f90e2471
13 changed files with 83 additions and 8 deletions

View File

@ -25,6 +25,7 @@ func TestAuthbossUpdatePassword(t *testing.T) {
ab := New()
ab.Config.Storage.Server = storer
ab.Config.Core.Hasher = mockHasher{}
if err := ab.UpdatePassword(context.Background(), user, "hello world"); err != nil {
t.Error(err)