mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-04-16 13:38:27 +02:00
Fetch groups only from authorized request
This commit is contained in:
parent
0199ad3a77
commit
64d08deef1
@ -307,7 +307,6 @@
|
|||||||
|
|
||||||
// we fetch fresh data whatever. The user will be notified to reload the page if there are any data changes
|
// we fetch fresh data whatever. The user will be notified to reload the page if there are any data changes
|
||||||
this.fetchAccounts()
|
this.fetchAccounts()
|
||||||
this.fetchGroups()
|
|
||||||
|
|
||||||
// stop OTP generation on modal close
|
// stop OTP generation on modal close
|
||||||
this.$on('modalClose', function() {
|
this.$on('modalClose', function() {
|
||||||
@ -363,6 +362,7 @@
|
|||||||
else {
|
else {
|
||||||
this.accounts = accounts
|
this.accounts = accounts
|
||||||
this.$storage.set('accounts', this.accounts)
|
this.$storage.set('accounts', this.accounts)
|
||||||
|
this.fetchGroups()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -432,7 +432,6 @@
|
|||||||
// we fetch the accounts again to prevent the js collection being
|
// we fetch the accounts again to prevent the js collection being
|
||||||
// desynchronize from the backend php collection
|
// desynchronize from the backend php collection
|
||||||
this.fetchAccounts(true)
|
this.fetchAccounts(true)
|
||||||
this.fetchGroups()
|
|
||||||
this.showGroupSelector = false
|
this.showGroupSelector = false
|
||||||
|
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user