mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 05:54:34 +02:00
Add authentication followup to front-end to ease navigation & redirects
This commit is contained in:
7
resources/js/mixins.js
vendored
7
resources/js/mixins.js
vendored
@ -26,9 +26,6 @@ Vue.mixin({
|
||||
},
|
||||
|
||||
clearStorage() {
|
||||
this.$storage.set('accounts')
|
||||
this.$storage.set('groups')
|
||||
this.$storage.set('lastRoute')
|
||||
},
|
||||
|
||||
exitSettings: function (event) {
|
||||
@ -36,6 +33,10 @@ Vue.mixin({
|
||||
this.$notify({ clean: true })
|
||||
this.$router.push({ name: 'accounts' })
|
||||
}
|
||||
this.$storage.remove('accounts')
|
||||
this.$storage.remove('groups')
|
||||
this.$storage.remove('lastRoute')
|
||||
this.$storage.remove('authenticated')
|
||||
},
|
||||
|
||||
isUrl: function (url) {
|
||||
|
Reference in New Issue
Block a user