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

inscription

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