MusicTopus/javascripts/mon-compte/index.js

30 lines
962 B
JavaScript
Raw Normal View History

2022-10-28 22:56:04 +02:00
if (typeof email !== "undefined" && typeof username !== "undefined") {
Vue.createApp({
data() {
return {
2022-10-28 22:56:04 +02:00
// eslint-disable-next-line no-undef
email,
2022-10-28 22:56:04 +02:00
// eslint-disable-next-line no-undef
username,
2022-10-28 22:56:04 +02:00
oldPassword: "",
password: "",
passwordConfirm: "",
loading: false,
2022-10-28 22:56:04 +02:00
};
},
methods: {
2022-10-28 22:56:04 +02:00
// eslint-disable-next-line no-unused-vars
async updateProfil(event) {
// try {
// if ( this.password !== this.passwordConfirm ) {
// throw "La confirnation du mot de passe ne correspond pas";
// }
// } catch(err) {
// event.preventDefault();
// showToastr(err);
// }
},
2022-10-28 22:56:04 +02:00
},
}).mount("#mon-compte");
}