Commit 501c6a3f authored by thibaut-felten's avatar thibaut-felten

inscription

parent 1a585a58
......@@ -4,7 +4,7 @@ import router from './router'
Vue.config.productionTip = false
sessionStorage.setItem('APIURL', 'http://localhost/felten/projet-cdaw/backend/MVC/api.php')
sessionStorage.setItem('APIURL', 'http://localhost/projet-cdaw/backend/MVC/api.php')
new Vue({
router,
......
......@@ -90,7 +90,6 @@
</style>
<script>
const user = require("../model/user.js")
export default {
name: 'Inscription',
......@@ -146,11 +145,6 @@ export default {
fetch(url, params)
.then(response=>response.json())
.then(response=> {
user.token = response.jwt_token
user.id = response.id
user.name = response.login
})
.then(this.$router.push('/'))
......
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