From 00bffe665dba3a35b004075f8c7d50eab5d8341b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Thu, 5 Mar 2020 21:31:52 +0100 Subject: [PATCH] fixed bug that password is cleared, whenn saving. --- src/components/user/Config.vue | 6 +++++- src/plugins/routes.js | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/user/Config.vue b/src/components/user/Config.vue index 022b7d9..eb34dfe 100644 --- a/src/components/user/Config.vue +++ b/src/components/user/Config.vue @@ -56,6 +56,7 @@ - Save + Save {{ error }} @@ -170,6 +171,7 @@ export default { firstname: null, lastname: null, password: null, + controlPassword: null, equal_password: value => this.password === value || 'Passwörter sind nicht identisch.', email: value => { @@ -198,6 +200,8 @@ export default { if (this.password) user.password = this.password } this.saveConfig({ oldUsername: user.username, ...user }) + this.password = null + this.controlPassword = null } }, computed: { diff --git a/src/plugins/routes.js b/src/plugins/routes.js index a6d0023..06f86a8 100644 --- a/src/plugins/routes.js +++ b/src/plugins/routes.js @@ -1,7 +1,7 @@ //const main = 'https://192.168.5.128:5000/' -//const main = 'http://localhost:5000/' +const main = 'http://localhost:5000/' //const main = 'http://192.168.5.118:5000/' -const main = 'https://groeger-clan.duckdns.org:5000/' +//const main = 'https://groeger-clan.duckdns.org:5000/' const url = { login: main + 'login',