fixed bug that password is cleared, whenn saving.
This commit is contained in:
parent
b2428cb5b4
commit
00bffe665d
|
@ -56,6 +56,7 @@
|
||||||
<v-col cols="12" sm="6">
|
<v-col cols="12" sm="6">
|
||||||
<v-text-field
|
<v-text-field
|
||||||
ref="password"
|
ref="password"
|
||||||
|
v-model="controlPassword"
|
||||||
outlined
|
outlined
|
||||||
label="Password bestätigen"
|
label="Password bestätigen"
|
||||||
type="password"
|
type="password"
|
||||||
|
@ -140,7 +141,7 @@
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
<v-card-actions>
|
<v-card-actions>
|
||||||
<v-spacer></v-spacer>
|
<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-card-actions>
|
||||||
<v-expand-transition>
|
<v-expand-transition>
|
||||||
<v-alert type="error" v-if="error">{{ error }}</v-alert>
|
<v-alert type="error" v-if="error">{{ error }}</v-alert>
|
||||||
|
@ -170,6 +171,7 @@ export default {
|
||||||
firstname: null,
|
firstname: null,
|
||||||
lastname: null,
|
lastname: null,
|
||||||
password: null,
|
password: null,
|
||||||
|
controlPassword: null,
|
||||||
equal_password: value =>
|
equal_password: value =>
|
||||||
this.password === value || 'Passwörter sind nicht identisch.',
|
this.password === value || 'Passwörter sind nicht identisch.',
|
||||||
email: value => {
|
email: value => {
|
||||||
|
@ -198,6 +200,8 @@ export default {
|
||||||
if (this.password) user.password = this.password
|
if (this.password) user.password = this.password
|
||||||
}
|
}
|
||||||
this.saveConfig({ oldUsername: user.username, ...user })
|
this.saveConfig({ oldUsername: user.username, ...user })
|
||||||
|
this.password = null
|
||||||
|
this.controlPassword = null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//const main = 'https://192.168.5.128:5000/'
|
//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 = 'http://192.168.5.118:5000/'
|
||||||
const main = 'https://groeger-clan.duckdns.org:5000/'
|
//const main = 'https://groeger-clan.duckdns.org:5000/'
|
||||||
|
|
||||||
const url = {
|
const url = {
|
||||||
login: main + 'login',
|
login: main + 'login',
|
||||||
|
|
Loading…
Reference in New Issue