summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-24 09:42:39 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-24 09:42:39 -0700
commitf0c3efab51b4ee9cc3b1b51db862ae918cb091da (patch)
treef774c9b8ea83b7d78e88df3d1c3d7880d1c18ae7
parent519e07801523a8a86f166d63ee07e96d85135704 (diff)
debugging current user code
-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
}