user settings: enable locking/unlocking an account

This commit is contained in:
William Pitcock 2018-05-29 14:19:28 +00:00
parent 648f31f44c
commit 7a08ba43e2
4 changed files with 13 additions and 4 deletions

View file

@ -127,11 +127,13 @@ const updateBanner = ({credentials, params}) => {
const updateProfile = ({credentials, params}) => {
let url = PROFILE_UPDATE_URL
console.log(params)
const form = new FormData()
each(params, (value, key) => {
if (key === 'description' || /* Always include description, because it might be empty */
value) {
/* Always include description and locked, because it might be empty or false */
if (key === 'description' || key === 'locked' || value) {
form.append(key, value)
}
})