Commit 8c94ae59 authored by Zohten's avatar Zohten

added registration

parent 8bb97b36
......@@ -67,12 +67,12 @@ export default {
'Content-Type': 'application/json;charset=utf-8'
},
body: JSON.stringify({
login: "NEWUSER",
pwd: "hashedNEWUSERpwd",
avatar: "avatarnew.png",
lastname: "NEW",
firstname: "USER",
mail: "new.user@free.fr"
login: document.getElementById('pseudo').value,
pwd: document.getElementById('password1').value,
avatar: "default.png",
lastname: "",
firstname: "",
mail: document.getElementById('mail').value
})
}); //creating the content and sending the request
......
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