summaryrefslogtreecommitdiff
path: root/system/db/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/db/user.go')
-rw-r--r--system/db/user.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/db/user.go b/system/db/user.go
index d3e13f1..8197b7c 100644
--- a/system/db/user.go
+++ b/system/db/user.go
@@ -172,10 +172,14 @@ func CurrentUser(req *http.Request) ([]byte, error) {
return nil, fmt.Errorf("Error. No user data found in request token.")
}
+ fmt.Println(claims, email.(string))
+
usr, err := User(email.(string))
if err != nil {
return nil, err
}
+ fmt.Println(string(usr))
+
return usr, nil
}