Remove secret variables from Jinja

This commit is contained in:
Fabio Widmer 2020-08-22 18:38:44 +02:00
parent aa18b7ecd1
commit 6a45010740
No known key found for this signature in database
GPG Key ID: B1EC11D925800D35
5 changed files with 6 additions and 12 deletions

View File

@ -49,7 +49,7 @@
Don't have an account yet? <a href="{{ url_for('auth.register') }}">Sign up</a>
</div>
{% if (GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET) or (GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET) or (FACEBOOK_CLIENT_ID and FACEBOOK_CLIENT_SECRET) %}
{% if GITHUB_CLIENT_ID or GOOGLE_CLIENT_ID or FACEBOOK_CLIENT_ID %}
<div class="text-center text-muted mt-5">
<a href="{{ url_for('auth.social') }}">Social Login</a> is now deprecated
</div>

View File

@ -12,21 +12,21 @@
<div class="card-title text-center">Social login
</div>
{% if GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET %}
{% if GITHUB_CLIENT_ID %}
<a href="{{ url_for('auth.github_login', next=next_url) }}"
class="btn btn-block btn-social btn-github">
<i class="fa fa-github"></i> Sign in with GitHub
</a>
{% endif %}
{% if GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET %}
{% if GOOGLE_CLIENT_ID %}
<a href="{{ url_for('auth.google_login', next=next_url) }}"
class="btn btn-block btn-social btn-google">
<i class="fa fa-google"></i> Sign in with Google
</a>
{% endif %}
{% if FACEBOOK_CLIENT_ID and FACEBOOK_CLIENT_SECRET %}
{% if FACEBOOK_CLIENT_ID %}
<a href="{{ url_for('auth.facebook_login', next=next_url) }}"
class="btn btn-block btn-social btn-facebook">
<i class="fa fa-facebook"></i> Sign in with Facebook

View File

@ -44,11 +44,8 @@ from app.config import (
PLAUSIBLE_HOST,
PLAUSIBLE_DOMAIN,
GITHUB_CLIENT_ID,
GITHUB_CLIENT_SECRET,
GOOGLE_CLIENT_ID,
GOOGLE_CLIENT_SECRET,
FACEBOOK_CLIENT_ID,
FACEBOOK_CLIENT_SECRET,
LANDING_PAGE_URL,
STATUS_PAGE_URL,
SUPPORT_EMAIL,
@ -470,11 +467,8 @@ def jinja2_filter(app):
PLAUSIBLE_HOST=PLAUSIBLE_HOST,
PLAUSIBLE_DOMAIN=PLAUSIBLE_DOMAIN,
GITHUB_CLIENT_ID=GITHUB_CLIENT_ID,
GITHUB_CLIENT_SECRET=GITHUB_CLIENT_SECRET,
GOOGLE_CLIENT_ID=GOOGLE_CLIENT_ID,
GOOGLE_CLIENT_SECRET=GOOGLE_CLIENT_SECRET,
FACEBOOK_CLIENT_ID=FACEBOOK_CLIENT_ID,
FACEBOOK_CLIENT_SECRET=FACEBOOK_CLIENT_SECRET,
LANDING_PAGE_URL=LANDING_PAGE_URL,
STATUS_PAGE_URL=STATUS_PAGE_URL,
SUPPORT_EMAIL=SUPPORT_EMAIL,

View File

@ -9,7 +9,7 @@
{{ render_text('This user has been also informed of this incident.') }}
{{ render_text('If you have any question, you can contact us by replying to this email or consult our website at ' ~ URL ~ '.') }}
{{ render_text('If you have any question, you can contact us by replying to this email or consult our website at ' ~ LANDING_PAGE_URL ~ '.') }}
{{ render_text('Regards, <br />SimpleLogin Team.') }}
{% endblock %}

View File

@ -7,7 +7,7 @@ We have recorded an attempt to send an email from your email ({{sender}}) to {{r
{{reply_email}} is a special email address that only receives emails from its authorized user.
This user has been also informed of this incident.
If you have any question, you can contact us by replying to this email or consult our website at {{URL}}.
If you have any question, you can contact us by replying to this email or consult our website at {{LANDING_PAGE_URL}}.
Regards,
SimpleLogin team.