This commit is contained in:
rchrist 2019-06-06 21:27:12 +02:00
parent aea8dcb8e8
commit b42968b4d7

View File

@ -534,19 +534,15 @@
this.updateStatus();
},
getUser() {
const data = {
"email" : this.newAdminMail
};
JSON.stringify(data);
const token = JSON.parse(localStorage.getItem('userToken')).token;
this.$axios.get(process.env.USER_API + '/account/email', data, {
this.$axios.get(process.env.USER_API + '/account/email/' + this.newAdminMail, {
headers: {
'Authorization': 'Bearer ' + token,
}
}).then((response) => {
let newAdminAccount = response.data;
if (response.status === 200) {
this.confirmAddAdmin((JSON.parse(response).data));
this.confirmAddAdmin(response.data);
}
})
.catch((error) => {