mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Security: New config option to disable the use of gravatar for profile images, Closes #1891
This commit is contained in:
@@ -25,6 +25,10 @@ func setIndexViewData(c *middleware.Context) error {
|
||||
IsGrafanaAdmin: c.IsGrafanaAdmin,
|
||||
}
|
||||
|
||||
if setting.DisableGravatar {
|
||||
currentUser.GravatarUrl = setting.AppSubUrl + "/img/user_profile.png"
|
||||
}
|
||||
|
||||
if len(currentUser.Name) == 0 {
|
||||
currentUser.Name = currentUser.Login
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user