From c2fc28aa1007ff3f7b055fc54bbc058560e50ee1 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 26 Apr 2016 08:40:47 -0400 Subject: Fix deactivating MFA on user accounts (#2797) --- api/user.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'api') diff --git a/api/user.go b/api/user.go index 16ba45dc4..b905fb639 100644 --- a/api/user.go +++ b/api/user.go @@ -2277,6 +2277,9 @@ func generateMfaQrCode(c *Context, w http.ResponseWriter, r *http.Request) { } w.Header().Del("Content-Type") // Content-Type will be set automatically by the http writer + w.Header().Set("Cache-Control", "no-cache") + w.Header().Set("Pragma", "no-cache") + w.Header().Set("Expires", "0") w.Write(img) } -- cgit v1.2.3-1-g7c22