This commit is contained in:
tsmethurst 2021-10-12 18:08:28 +02:00
commit d6cc79ba97
2 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ func (suite *ChangePasswordTestSuite) TestChangePasswordOK() {
errWithCode := suite.user.ChangePassword(context.Background(), user, "password", "verygoodnewpassword")
suite.NoError(errWithCode)
err := bcrypt.CompareHashAndPassword([]byte(user.EncryptedPassword), []byte("verygoodnewpassword"))
suite.NoError(err)