Redesign UserMenu, now with support for Gravatar

This commit is contained in:
Deluan 2020-11-13 00:40:01 -05:00
parent 7efc32d136
commit 9d7995fd4d
7 changed files with 196 additions and 9 deletions

View file

@ -38,6 +38,7 @@ type configOptions struct {
CoverArtPriority string
CoverJpegQuality int
UIWelcomeMessage string
EnableGravatar bool
GATrackingID string
AuthRequestLimit int
AuthWindowLength time.Duration
@ -124,6 +125,7 @@ func init() {
viper.SetDefault("coverartpriority", "embedded, cover.*, folder.*, front.*")
viper.SetDefault("coverjpegquality", 75)
viper.SetDefault("uiwelcomemessage", "")
viper.SetDefault("enablegravatar", false)
viper.SetDefault("gatrackingid", "")
viper.SetDefault("authrequestlimit", 5)
viper.SetDefault("authwindowlength", 20*time.Second)