mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 21:57:47 +02:00
Add authentications log
This commit is contained in:
9
resources/js/services/userService.js
vendored
9
resources/js/services/userService.js
vendored
@ -128,5 +128,14 @@ export default {
|
||||
revokeWebauthnCredentials(id, config = {}) {
|
||||
return apiClient.delete('/users/' + id + '/credentials', { ...config })
|
||||
},
|
||||
|
||||
/**
|
||||
* Get user's authentication logs
|
||||
*
|
||||
* @returns promise
|
||||
*/
|
||||
getauthentications(id, limit, config = {}) {
|
||||
return apiClient.get('/users/' + id + '/authentications' + (limit ? '?limit=' + limit : ''), { ...config })
|
||||
},
|
||||
|
||||
}
|
Reference in New Issue
Block a user