mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-15 16:22:25 +02:00
Fix #82 - Add a proxy logout URL and skip auto lock when it is not set
This commit is contained in:
15
resources/js/mixins.js
vendored
15
resources/js/mixins.js
vendored
@ -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) {
|
||||
|
Reference in New Issue
Block a user