feat: social login providers with dynamic instances
This commit is contained in:
@@ -125,7 +125,7 @@
|
||||
v-icon mdi-domain
|
||||
v-list-item-content
|
||||
v-list-item-title {{$t('admin:users.authProvider')}}
|
||||
v-list-item-subtitle {{ user.providerKey }}
|
||||
v-list-item-subtitle {{ user.providerName }} #[em.caption ({{ user.providerKey }})]
|
||||
//- v-list-item-action
|
||||
//- v-img(src='https://static.requarks.io/logo/wikijs.svg', alt='', contain, max-height='32', position='center right')
|
||||
template(v-if='user.providerKey === `local`')
|
||||
@@ -953,6 +953,7 @@ export default {
|
||||
name
|
||||
email
|
||||
providerKey
|
||||
providerName
|
||||
providerId
|
||||
location
|
||||
jobTitle
|
||||
|
@@ -57,7 +57,7 @@
|
||||
td {{ props.item.id }}
|
||||
td: strong {{ props.item.name }}
|
||||
td {{ props.item.email }}
|
||||
td {{ props.item.providerKey }}
|
||||
td {{ getStrategyName(props.item.providerKey) }}
|
||||
td {{ props.item.createdAt | moment('from') }}
|
||||
td
|
||||
span(v-if='props.item.lastLoginAt') {{ props.item.lastLoginAt | moment('from') }}
|
||||
@@ -131,6 +131,9 @@ export default {
|
||||
icon: 'cached'
|
||||
})
|
||||
}
|
||||
},
|
||||
getStrategyName(key) {
|
||||
return (_.find(this.strategies, ['key', key]) || {}).displayName || key
|
||||
}
|
||||
},
|
||||
apollo: {
|
||||
|
Reference in New Issue
Block a user