26 lines
800 B
JavaScript
26 lines
800 B
JavaScript
|
if ( typeof email !== 'undefined' && typeof username !== 'undefined' ) {
|
||
|
Vue.createApp({
|
||
|
data() {
|
||
|
return {
|
||
|
email,
|
||
|
username,
|
||
|
oldPassword: '',
|
||
|
password: '',
|
||
|
passwordConfirm: '',
|
||
|
loading: false,
|
||
|
}
|
||
|
},
|
||
|
methods: {
|
||
|
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);
|
||
|
// }
|
||
|
},
|
||
|
}
|
||
|
}).mount('#mon-compte');
|
||
|
}
|