Add Period & Sort options to user access log

This commit is contained in:
Bubka
2024-04-15 18:39:37 +02:00
parent 4f17e2aff0
commit 44d7328d6c
7 changed files with 111 additions and 7 deletions

View File

@ -134,8 +134,8 @@ export default {
*
* @returns promise
*/
getauthentications(id, limit, config = {}) {
return apiClient.get('/users/' + id + '/authentications' + (limit ? '?limit=' + limit : ''), { ...config })
getauthentications(id, period = 90, limit, config = {}) {
return apiClient.get('/users/' + id + '/authentications?period=' + period + (limit ? '&limit=' + limit : ''), { ...config })
},
}