Commit 8c94ae59 authored by Zohten's avatar Zohten

added registration

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