Added endpoint to auth with username and password

This commit is contained in:
2021-01-05 16:23:18 +01:00
parent b46e72999e
commit 6da74e0adc
4 changed files with 36 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ func (h Handlers) AccountGet(c *fiber.Ctx) error {
return c.Status(403).JSON([]ResJSONError{{Error: authErr.Error()}})
}
account, accountErr := h.Db.AccountGet(accountID, "")
account, accountErr := h.Db.AccountGet(accountID, "", "")
if accountErr != nil {
return c.Status(500).JSON([]ResJSONError{{Error: accountErr.Error()}})
}