|
|
@ -515,9 +515,11 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
loadUsername() { |
|
|
|
const jwtToken = this.$root.storage().token; |
|
|
|
const jwtPayload = jwt_decode(jwtToken); |
|
|
|
this.username = jwtPayload.username; |
|
|
|
const jwtPayload = this.$root.getJWTPayload(); |
|
|
|
|
|
|
|
if (jwtPayload) { |
|
|
|
this.username = jwtPayload.username; |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
loadSettings() { |
|
|
@ -568,6 +570,7 @@ export default { |
|
|
|
this.settings.disableAuth = false; |
|
|
|
this.saveSettings(); |
|
|
|
this.$root.storage().removeItem("token"); |
|
|
|
location.reload(); |
|
|
|
}, |
|
|
|
|
|
|
|
downloadBackup() { |
|
|
|