Fix: pass username in ctx; more test words
This commit is contained in:
		| @@ -94,7 +94,7 @@ func GetSession(next http.Handler) http.Handler { | ||||
| 		} | ||||
| 		ctx := context.WithValue(r.Context(), | ||||
| 			models.CtxUsernameKey, userSession.Username) | ||||
| 		ctx = context.WithValue(r.Context(), | ||||
| 		ctx = context.WithValue(ctx, | ||||
| 			models.CtxSessionKey, userSession) | ||||
| 		if err := cacheSetSession(sessionToken, | ||||
| 			userSession); err != nil { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder