mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-25 05:58:42 +01:00
Enabled fido registration on frontend
This commit is contained in:
@@ -18,5 +18,8 @@ export default {
|
||||
},
|
||||
endFidoRegistration(data) {
|
||||
return repository.post('/fido/registration/end/', data)
|
||||
}
|
||||
},
|
||||
getAllFidoRegistred() {
|
||||
return repository.get('/fido/')
|
||||
},
|
||||
}
|
||||
|
||||
@@ -66,6 +66,9 @@ async function startFidoRegistration() {
|
||||
|
||||
onMounted(() => {
|
||||
registrationLoading.value = true
|
||||
authApi.getAllFidoRegistred().then((resp) => {
|
||||
console.log(resp)
|
||||
})
|
||||
authApi.beginFidoRegistration().then((resp) => {
|
||||
creationOption.value = createRequestFromJSON(resp.data)
|
||||
}).finally(() => registrationLoading.value = false)
|
||||
|
||||
Reference in New Issue
Block a user