♻️ Simplify user storage

This commit is contained in:
2020-10-10 19:06:49 +02:00
parent 9cef5c63a2
commit e6a62bfeb1
2 changed files with 68 additions and 79 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ func TestStoreUserHandling(t *testing.T) {
})
t.Run("adding users should work", func(t *testing.T) {
if err := store.AddUser(User{"myuser", "mypass", GlobalRoleUser}); err != nil {
if err := store.AddUser(User{Username: "myuser", Password: "mypass", Role: GlobalRoleUser}); err != nil {
t.Errorf("cannot add user: %v", err)
}