mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-04-14 20:48:37 +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
|
||||
this.fetchAccounts()
|
||||
this.fetchGroups()
|
||||
|
||||
// stop OTP generation on modal close
|
||||
this.$on('modalClose', function() {
|
||||
@ -363,6 +362,7 @@
|
||||
else {
|
||||
this.accounts = accounts
|
||||
this.$storage.set('accounts', this.accounts)
|
||||
this.fetchGroups()
|
||||
}
|
||||
})
|
||||
},
|
||||
@ -432,7 +432,6 @@
|
||||
// we fetch the accounts again to prevent the js collection being
|
||||
// desynchronize from the backend php collection
|
||||
this.fetchAccounts(true)
|
||||
this.fetchGroups()
|
||||
this.showGroupSelector = false
|
||||
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user