|
|
|
@ -1,4 +1,6 @@
|
|
|
|
|
<script>
|
|
|
|
|
import { REST_API } from '@/assets/const'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
@ -15,6 +17,9 @@ export default {
|
|
|
|
|
console.log(this.email)
|
|
|
|
|
console.log(this.password)
|
|
|
|
|
|
|
|
|
|
const loginMDP={pseudo:this.email, motDePasse:this.password}
|
|
|
|
|
|
|
|
|
|
fetch(REST_API+"/utilisateur/connexion", {method:"POST", body:JSON.stringify(loginMDP)}).then(response=>console.log(response))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|