debut de login

front
Gwenael PLANCHON 1 year ago
parent 4f1494d719
commit af877cd8f8

@ -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))
}
}
}

Loading…
Cancel
Save