fixed bug that password is cleared, whenn saving.

This commit is contained in:
Tim Gröger 2020-03-05 21:31:52 +01:00
parent b2428cb5b4
commit 00bffe665d
2 changed files with 7 additions and 3 deletions

View File

@ -56,6 +56,7 @@
<v-col cols="12" sm="6">
<v-text-field
ref="password"
v-model="controlPassword"
outlined
label="Password bestätigen"
type="password"
@ -140,7 +141,7 @@
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn @click="save">Save</v-btn>
<v-btn text color="primary" @click="save">Save</v-btn>
</v-card-actions>
<v-expand-transition>
<v-alert type="error" v-if="error">{{ error }}</v-alert>
@ -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: {

View File

@ -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',