summaryrefslogtreecommitdiff
path: root/server/admin
diff options
context:
space:
mode:
Diffstat (limited to 'server/admin')
-rw-r--r--server/admin/handler.go4
-rw-r--r--server/admin/models.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/server/admin/handler.go b/server/admin/handler.go
index 5fd1fee..f2d5807 100644
--- a/server/admin/handler.go
+++ b/server/admin/handler.go
@@ -114,6 +114,6 @@ func (adminHandler *AdminHandler) marshalResponse(guests []guest.Guest, token st
return json.Marshal(loginResponse)
}
-func (adminHandler *AdminHandler) createLoginResponse(guests []guest.Guest, token string) *LoginResponse {
- return &LoginResponse{guests, token}
+func (adminHandler *AdminHandler) createLoginResponse(guests []guest.Guest, token string) *Login {
+ return &Login{guests, token}
}
diff --git a/server/admin/models.go b/server/admin/models.go
index d9b8232..1699381 100644
--- a/server/admin/models.go
+++ b/server/admin/models.go
@@ -15,7 +15,7 @@ type Claims struct {
jwt.RegisteredClaims
}
-type LoginResponse struct {
+type Login struct {
Guests []guest.Guest `json:"guests"`
Token string `json:"token"`
}