2020-04-28 05:08:21 +08:00
|
|
|
{% extends "single.html" %}
|
|
|
|
|
2022-06-29 17:28:26 +08:00
|
|
|
{% block title %}Social Login{% endblock %}
|
2020-04-28 05:08:21 +08:00
|
|
|
{% block single_content %}
|
2022-06-29 17:28:26 +08:00
|
|
|
|
2020-04-28 05:08:21 +08:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body p-6">
|
2022-06-29 17:28:26 +08:00
|
|
|
<div class="card-title text-center">Social login</div>
|
2020-08-23 00:38:44 +08:00
|
|
|
{% if GITHUB_CLIENT_ID %}
|
2020-04-28 05:08:21 +08:00
|
|
|
|
2022-06-29 17:28:26 +08:00
|
|
|
<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>
|
2020-08-16 18:57:12 +08:00
|
|
|
{% endif %}
|
2022-06-29 17:28:26 +08:00
|
|
|
{% if GOOGLE_CLIENT_ID %}
|
2020-04-28 05:08:21 +08:00
|
|
|
|
2022-06-29 17:28:26 +08:00
|
|
|
<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 %}
|
2020-08-23 00:38:44 +08:00
|
|
|
{% if FACEBOOK_CLIENT_ID %}
|
2022-06-29 17:28:26 +08:00
|
|
|
|
|
|
|
<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
|
|
|
|
</a>
|
2020-08-16 18:57:12 +08:00
|
|
|
{% endif %}
|
2020-04-28 05:08:21 +08:00
|
|
|
</div>
|
2022-06-29 17:28:26 +08:00
|
|
|
<div class="text-center p-3"
|
|
|
|
style="font-size: 12px; font-weight: 300; margin: auto">
|
2020-04-28 05:08:21 +08:00
|
|
|
<span class="badge badge-warning">Warning</span>
|
2022-06-29 17:28:26 +08:00
|
|
|
Please note that social login is now <b>deprecated</b>.
|
|
|
|
<br />
|
|
|
|
<br />
|
2020-04-28 05:08:21 +08:00
|
|
|
Though practical, these social providers do not respect your privacy and therefore we recommend using
|
|
|
|
email/password.
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="text-center text-muted mt-2">
|
2022-06-29 17:28:26 +08:00
|
|
|
<a href="{{ url_for('auth.register') }}">Sign up</a>
|
|
|
|
/
|
|
|
|
<a href="{{ url_for('auth.login') }}">Login</a>
|
2020-04-28 05:08:21 +08:00
|
|
|
</div>
|
2022-06-29 17:28:26 +08:00
|
|
|
{% endblock %}
|