mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-08 21:44:32 +02:00
This commit is contained in:
31
resources/js/components/SsoConnectLink.vue
Normal file
31
resources/js/components/SsoConnectLink.vue
Normal file
@ -0,0 +1,31 @@
|
||||
<script setup>
|
||||
const props = defineProps({
|
||||
provider: {
|
||||
type: String,
|
||||
default: 'unknown'
|
||||
}
|
||||
})
|
||||
|
||||
const icons = {
|
||||
unknown: {
|
||||
collection: 'fa',
|
||||
icon: 'globe',
|
||||
},
|
||||
github: {
|
||||
collection: 'fab',
|
||||
icon: 'github-alt',
|
||||
},
|
||||
openid: {
|
||||
collection: 'fab',
|
||||
icon: 'openid',
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<a :id="'lnkSignWith' + props.provider" class="button is-link" :href="'socialite/redirect/' + props.provider">
|
||||
{{ $t('auth.sso_providers.' + props.provider) }}
|
||||
<FontAwesomeIcon class="ml-2" :icon="[icons[props.provider].collection, icons[props.provider].icon]" />
|
||||
</a>
|
||||
</template>
|
||||
|
Reference in New Issue
Block a user