mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
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
This commit is contained in:
parent
c1ab27172c
commit
a291d8a38b
15 changed files with 76 additions and 31 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue