Allow to enable only webauthn

This commit is contained in:
Spitfireap
2024-06-22 19:45:58 +02:00
parent 0d8e0690c5
commit b1bf3faf07
12 changed files with 261 additions and 164 deletions
@@ -36,10 +36,10 @@ const { $gettext } = useGettext()
const props = defineProps({
// the callback should return true or false, returning false inhibits the close event
callback_agree : {
callback_agree: {
type: Function,
default: null
}
default: null,
},
})
const dialog = ref(false)
@@ -70,7 +70,7 @@ defineExpose({
})
async function agree() {
if (props.callback_agree !== null && ! (await props.callback_agree())) {
if (props.callback_agree !== null && !(await props.callback_agree())) {
return
}
storedResolve(true)