From 708aa6868d946afddce200bf1a53ec491e3e6400 Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Sun, 13 Aug 2017 16:23:52 +0200 Subject: [PATCH] Added JSON attributes to auth.User --- auth/user.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/auth/user.go b/auth/user.go index 3c032c4..b1cabb8 100644 --- a/auth/user.go +++ b/auth/user.go @@ -1,9 +1,9 @@ package auth type User struct { - ID string - Level string - Data map[string]string + ID string `json:"id"` + Level string `json:"level"` + Data map[string]string `json:"data"` method Authenticator loggedOut bool