[social] indieauth use "domain", not "instance"

This commit is contained in:
Andrea 2022-04-23 13:04:06 +02:00
parent 6be7927898
commit 97cf28158a
3 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,7 @@
:action="providerOptions.redirectViaHome ? `${homeUrl}/api/user/social-redirect/${provider}/${config.locale}` : `/api/connect/${provider}`"
class="input-group input-group-sm">
<input type="text" name="instance" class="form-control" autofocus required
:placeholder="$t('user.login.instancePlaceholder')"/>
:placeholder="$t(providerOptions.domain ? 'user.login.domainPlaceholder' : 'user.login.instancePlaceholder')"/>
<button type="submit" class="btn btn-outline-secondary">
<Icon v="link"/>
</button>

View File

@ -6,7 +6,7 @@
<form :action="link"
v-if="options.instanceRequired" class="input-group my-2">
<input type="text" name="instance" class="form-control" autofocus required ref="instance"
:placeholder="$t('user.login.instancePlaceholder')">
:placeholder="$t(options.domain ? 'user.login.domainPlaceholder' : 'user.login.instancePlaceholder')"/>
<button type="submit" class="btn btn-outline-primary">
<Icon v="arrow-right"/>
</button>

View File

@ -8,6 +8,7 @@ export const socialProviders = {
indieauth: {
name: 'IndieAuth',
instanceRequired: true,
domain: true,
icon: 'indieauth.png',
iconMargin: true,
avatars: false,