summaryrefslogtreecommitdiff
path: root/shrine/controllers/auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'shrine/controllers/auth.go')
-rw-r--r--shrine/controllers/auth.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/shrine/controllers/auth.go b/shrine/controllers/auth.go
index 8d27f3b..97b3bb8 100644
--- a/shrine/controllers/auth.go
+++ b/shrine/controllers/auth.go
@@ -16,7 +16,7 @@ func RegisterController(context *fiber.Ctx) error {
return shortcuts.BadRequest(context, err)
}
- result, serviceErr := services.Register(body)
+ result, serviceErr := services.Register(body, meta.Request(context).IP)
if serviceErr != nil {
return shortcuts.HandleError(context, serviceErr)
}
@@ -30,7 +30,7 @@ func LoginController(context *fiber.Ctx) error {
return shortcuts.BadRequest(context, err)
}
- citizen, serviceErr := services.Authenticate(body)
+ citizen, serviceErr := services.Authenticate(body, meta.Request(context).IP)
if serviceErr != nil {
return shortcuts.HandleError(context, serviceErr)
}