summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/UserModuleEdit.vue
diff options
context:
space:
mode:
authorJannik Schönartz2019-02-26 03:46:36 +0100
committerJannik Schönartz2019-02-26 03:46:36 +0100
commitcf1b40542c41b3c78e83650e4e73e596c85ff160 (patch)
treed10d2f5061815e95fc56e43f1675eb127416e255 /webapp/src/components/UserModuleEdit.vue
parent[webapp/groups] fix wrong tabbar color (diff)
downloadbas-cf1b40542c41b3c78e83650e4e73e596c85ff160.tar.gz
bas-cf1b40542c41b3c78e83650e4e73e596c85ff160.tar.xz
bas-cf1b40542c41b3c78e83650e4e73e596c85ff160.zip
[account] Fix for the changePassword method
User upadate changes didn't hashed the new password correctly changePassword from promises reworked to async / await (much cleaner) Check weather the usertable is empty is now a get request and not mixed in the post request
Diffstat (limited to 'webapp/src/components/UserModuleEdit.vue')
-rw-r--r--webapp/src/components/UserModuleEdit.vue8
1 files changed, 5 insertions, 3 deletions
diff --git a/webapp/src/components/UserModuleEdit.vue b/webapp/src/components/UserModuleEdit.vue
index 924a109..e989c11 100644
--- a/webapp/src/components/UserModuleEdit.vue
+++ b/webapp/src/components/UserModuleEdit.vue
@@ -3,12 +3,14 @@
"en": {
"titleExisting": "Edit user",
"titleNew": "Create user",
- "userCreated": "User was successfully created."
+ "userCreated": "User was successfully created.",
+ "userUpdated": "User was successfully updated."
},
"de": {
"titleExisting": "Benutzer bearbeiten",
"titleNew": "Benutzer erstellen",
- "userCreated": "Benutzer wurde erfolgreich erstellt."
+ "userCreated": "Benutzer wurde erfolgreich erstellt.",
+ "userUpdated": "Benutzer wurde erfolgreich aktualisiert."
}
}
</i18n>
@@ -67,7 +69,7 @@ export default {
}).then(response => {
this.$store.dispatch('users/loadData')
this.setDialog({ show: false })
- this.$snackbar({ color: 'success', text: this.$t('userCreated') })
+ this.$snackbar({ color: 'success', text: this.dialog.info.id ? this.$t('userUpdated') : this.$t('userCreated') })
}).catch(error => {
if (error.response.data.status === 'USER_ALREADY_EXISTS') {
this.$refs.editComponent.setUsernameTakenError()