use the right struct to create user

This commit is contained in:
kiwiidb
2022-02-15 16:46:32 +01:00
parent 06e4257aaa
commit a44d9052e7
2 changed files with 9 additions and 9 deletions

View File

@@ -66,7 +66,7 @@ func (suite *CreateUserTestSuite) TestCreateWithProvidedLoginAndPassword() {
var buf bytes.Buffer
const testLogin = "test login"
const testPassword = "test password"
json.NewEncoder(&buf).Encode(&controllers.AuthRequestBody{
json.NewEncoder(&buf).Encode(&controllers.CreateUserRequestBody{
Login: testLogin,
Password: testPassword,
})