Commit d08d00d9 authored by raphael.peim's avatar raphael.peim

Fix bugs

parent 393f6918
......@@ -84,7 +84,7 @@
input.autocomplete = 'off'
input.required = true
if (key == "id" || key == "password" || key == "role")
if (key == "id" || key == "password" || key == "role" || key == "avatar" || key == "avatar_url")
input.hidden = true
div.append(input)
......
......@@ -56,7 +56,7 @@
onSubmit(evt) {
evt.preventDefault()
const form = document.forms[0]
let body = { 'role': 0 }
let body = { 'avatar': 1, 'avatar_url': '', 'role': 0 }
// Si les mots de passe sont bien les mêmes
if (form.elements.password.value == form.elements.passwordRepeat.value) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment