Skip to content

Commit c0e4510

Browse files
committed
small fix
1 parent a7d3347 commit c0e4510

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

handlers/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (ah AuthHandler) Authenticate(c *fiber.Ctx) error {
2929
})
3030

3131
}
32-
conn, err := memphis.Connect(body.Host, body.Username, body.ConnectionToken)
32+
conn, err := memphis.Connect(configuration.MEMPHIS_HOST, body.Username, body.ConnectionToken)
3333
if err != nil {
3434
return c.Status(fiber.StatusInternalServerError).JSON(fiber.Map{
3535
"message": "Wrong credentials",

models/auth.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package models
22

33
type AuthSchema struct {
4-
Host string `json:"host" validate:"required"`
54
Username string `json:"username" validate:"required"`
65
ConnectionToken string `json:"connection_token" validate:"required"`
76
}

0 commit comments

Comments
 (0)