diff options
author | jloup <jloup@jloup.work> | 2018-05-17 00:09:08 +0200 |
---|---|---|
committer | jloup <jloup@jloup.work> | 2018-05-17 00:09:08 +0200 |
commit | e0ab9e8caa9237d3e15193fcb0ca74954afc66be (patch) | |
tree | 43588e5cd109ca7d3f2f7e5f6785fc2113768b97 /api/auth_jwt.go | |
parent | 4059b21bd00261699ae6c7619adf053a607073e5 (diff) | |
download | Front-e0ab9e8caa9237d3e15193fcb0ca74954afc66be.tar.gz Front-e0ab9e8caa9237d3e15193fcb0ca74954afc66be.tar.zst Front-e0ab9e8caa9237d3e15193fcb0ca74954afc66be.zip |
Context log fields.v0.0.19
Diffstat (limited to 'api/auth_jwt.go')
-rw-r--r-- | api/auth_jwt.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api/auth_jwt.go b/api/auth_jwt.go index 88ccda8..27cc3b0 100644 --- a/api/auth_jwt.go +++ b/api/auth_jwt.go | |||
@@ -92,6 +92,7 @@ func JwtAuth(c *gin.Context) *Error { | |||
92 | 92 | ||
93 | c.Set("user", *user) | 93 | c.Set("user", *user) |
94 | c.Set("claims", claims) | 94 | c.Set("claims", claims) |
95 | SetContextLogField(c, "user_id", user.Id) | ||
95 | 96 | ||
96 | return nil | 97 | return nil |
97 | } | 98 | } |