diff options
author | Dave Arter <davea@mysociety.org> | 2017-11-01 14:27:29 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-11-08 16:11:59 +0000 |
commit | 1fc77b834e03df20cc85efb1821e62b9a880ef14 (patch) | |
tree | 79f917d53b6e29ad3c3cb0d6cf37e28213d4e201 /templates/web/base/auth | |
parent | 1b6dca6afd96f508f93f77216c2afb7e6f8945c7 (diff) |
Allow individual cobrands to disable Facebook/Twitter login
This means FB/Twitter login is disabled even if FACEBOOK_APP_ID/TWITTER_KEY are set.
Diffstat (limited to 'templates/web/base/auth')
-rw-r--r-- | templates/web/base/auth/general.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/web/base/auth/general.html b/templates/web/base/auth/general.html index d630dd415..76426f5d8 100644 --- a/templates/web/base/auth/general.html +++ b/templates/web/base/auth/general.html @@ -16,7 +16,7 @@ <input type="hidden" name="r" value="[% c.req.params.r | html %]"> -[% IF NOT oauth_need_email AND (c.config.FACEBOOK_APP_ID OR c.config.TWITTER_KEY) %] +[% IF NOT oauth_need_email AND c.cobrand.social_auth_enabled %] [% IF c.config.FACEBOOK_APP_ID %] <div class="form-box"> <button name="facebook_sign_in" id="facebook_sign_in" value="facebook_sign_in" class="btn btn--block btn--social btn--facebook"> @@ -64,7 +64,7 @@ [% END %] </div> -[% IF NOT oauth_need_email AND (c.config.FACEBOOK_APP_ID OR c.config.TWITTER_KEY) %] +[% IF NOT oauth_need_email AND c.cobrand.social_auth_enabled %] </div> [% END %] |