Fix #82 - Add a proxy logout URL and skip auto lock when it is not set

This commit is contained in:
Bubka
2022-05-16 22:55:50 +02:00
parent 1aedf4a5c9
commit 6ef67fbc64
6 changed files with 23 additions and 6 deletions

View File

@ -11,10 +11,17 @@ Vue.mixin({
methods: {
async appLogout(evt) {
await this.axios.get('/user/logout')
this.$storage.clear()
location.reload()
if (this.$root.appConfig.proxyAuth) {
if (this.$root.appConfig.proxyLogoutUrl) {
location.assign(this.$root.appConfig.proxyLogoutUrl)
}
else return false
}
else {
await this.axios.get('/user/logout')
this.$storage.clear()
location.reload()
}
},
exitSettings: function(event) {