Don't allow email to be modified from user settings

This commit is contained in:
Howl 2016-11-12 18:51:50 +01:00
parent 1c2201317f
commit 6d3d6cde2d
1 changed files with 0 additions and 2 deletions

View File

@ -45,7 +45,6 @@ func UsersSelfFavouriteModeGET(md common.MethodData) common.CodeMessager {
}
type userSettingsData struct {
Email string `json:"email"`
UsernameAKA string `json:"username_aka"`
FavouriteMode *int `json:"favourite_mode"`
CustomBadge struct {
@ -60,7 +59,6 @@ func UsersSelfSettingsPOST(md common.MethodData) common.CodeMessager {
var d userSettingsData
md.RequestData.Unmarshal(&d)
q := new(common.UpdateQuery).
Add("u.email", d.Email).
Add("s.username_aka", d.UsernameAKA).
Add("s.favourite_mode", d.FavouriteMode).
Add("s.custom_badge_name", d.CustomBadge.Name).