Don't expose Last.fm API Key in the index.html
This commit is contained in:
@@ -77,6 +77,9 @@ func buildAuthPayload(user *model.User) map[string]interface{} {
|
||||
if conf.Server.EnableGravatar && user.Email != "" {
|
||||
payload["avatar"] = gravatar.Url(user.Email, 50)
|
||||
}
|
||||
if conf.Server.LastFM.Enabled {
|
||||
payload["lastFMApiKey"] = conf.Server.LastFM.ApiKey
|
||||
}
|
||||
|
||||
bytes := make([]byte, 3)
|
||||
_, err := rand.Read(bytes)
|
||||
|
||||
Reference in New Issue
Block a user