diff --git a/website/app-templates/smarty/blocks/user/oauth.tpl b/website/app-templates/smarty/blocks/user/oauth.tpl index 6519b550d0..2500b0d0fc 100644 --- a/website/app-templates/smarty/blocks/user/oauth.tpl +++ b/website/app-templates/smarty/blocks/user/oauth.tpl @@ -12,16 +12,19 @@

{foreach from=$socialProviders item=provider} - {if $user->isConnectedWithProvider($provider)} -
- -
- {else} -
- {fa icon="{strtolower($provider->name)}"} {t}Connect{/t} -
+ {assign "GK_OPAUTH_CLIENT_ID" sprintf("GK_OPAUTH_%s_CLIENT_ID", strtoupper($provider->name))} + {if (defined($GK_OPAUTH_CLIENT_ID) and constant($GK_OPAUTH_CLIENT_ID) !== false)} + {if $user->isConnectedWithProvider($provider)} +
+ +
+ {else} +
+ {fa icon="{strtolower($provider->name)}"} {t}Connect{/t} +
+ {/if} {/if} {/foreach}