1
0
Fork 0
forked from forgejo/forgejo

Add disable gravatar option

This commit is contained in:
Unknown 2014-05-01 21:30:04 -04:00
parent 3bd5fc6d6f
commit e7d8fadb08
5 changed files with 11 additions and 2 deletions

View file

@ -80,7 +80,8 @@ var (
SessionConfig *session.Config
SessionManager *session.Manager
PictureService string
PictureService string
DisableGravatar bool
EnableRedis bool
EnableMemcache bool
@ -345,7 +346,9 @@ func NewConfigContext() {
LogInRememberDays = Cfg.MustInt("security", "LOGIN_REMEMBER_DAYS")
CookieUserName = Cfg.MustValue("security", "COOKIE_USERNAME")
CookieRememberName = Cfg.MustValue("security", "COOKIE_REMEMBER_NAME")
PictureService = Cfg.MustValue("picture", "SERVICE")
DisableGravatar = Cfg.MustBool("picture", "DISABLE_GRAVATAR", false)
// Determine and create root git reposiroty path.
homeDir, err := com.HomeDir()