From a291d8a38b40569fdd1f00125ca0b29e4b9264f2 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Wed, 18 Jul 2018 22:30:05 -0700 Subject: Improve themes handling - Store user theme in session - Logged out users will keep their theme - Add theme background color to web manifest and meta tag --- ui/oauth2_callback.go | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/oauth2_callback.go') diff --git a/ui/oauth2_callback.go b/ui/oauth2_callback.go index 23e379b2..a39c0ac7 100644 --- a/ui/oauth2_callback.go +++ b/ui/oauth2_callback.go @@ -114,6 +114,7 @@ func (c *Controller) OAuth2Callback(w http.ResponseWriter, r *http.Request) { logger.Info("[Controller:OAuth2Callback] username=%s just logged in", user.Username) c.store.SetLastLogin(user.ID) sess.SetLanguage(user.Language) + sess.SetTheme(user.Theme) http.SetCookie(w, cookie.New( cookie.CookieUserSessionID, -- cgit v1.2.3