fix(settings): auth hash accidentally overridden
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-28 22:17:58 -05:00
parent a86e2520ef
commit 622dcd5702
5 changed files with 21 additions and 12 deletions

View File

@@ -50,10 +50,11 @@ func (dt *databaseTest) TestUser() {
t.Fatalf(`Expected: %v, Got: %v, Error: %v`, nil, err, err)
}
authHash := fmt.Sprintf("%x", rawAuthHash)
changed, err := dt.dbm.Queries.CreateUser(dt.dbm.Ctx, CreateUserParams{
ID: userID,
Pass: &userPass,
AuthHash: fmt.Sprintf("%x", rawAuthHash),
AuthHash: &authHash,
})
if err != nil || changed != 1 {