aboutsummaryrefslogtreecommitdiff
path: root/ui/oauth2_callback.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net> 2018-07-18 22:30:05 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net> 2018-07-18 22:30:05 -0700
commita291d8a38b40569fdd1f00125ca0b29e4b9264f2 (patch)
tree13345ce7b413d9919521de258e60954467afcda0 /ui/oauth2_callback.go
parentc1ab27172c0d82f9289aeb3402056f727bc473fd (diff)
downloadv2-a291d8a38b40569fdd1f00125ca0b29e4b9264f2.tar.gz
v2-a291d8a38b40569fdd1f00125ca0b29e4b9264f2.tar.zst
v2-a291d8a38b40569fdd1f00125ca0b29e4b9264f2.zip
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
Diffstat (limited to 'ui/oauth2_callback.go')
-rw-r--r--ui/oauth2_callback.go1
1 files changed, 1 insertions, 0 deletions
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,