Skip to content

Commit 4a4eff5

Browse files
committed
OAuth - Added GH Login Button
1 parent 8bb8d61 commit 4a4eff5

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

apps/templates/accounts/login.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,19 @@ <h3 class="font-weight-bolder text-info text-gradient">
6565
</div>
6666
<div class="card-footer text-center pt-0 px-lg-2 px-1">
6767
<p class="mb-4 text-sm mx-auto">
68-
&nbsp;
68+
69+
<!-- GitHub button starts here -->
70+
{% if config.SOCIAL_AUTH_GITHUB %}
71+
72+
<p class="mb-2">or SignIn with</p>
73+
74+
<a class="btn btn-outline" href="{{url_for('authentication_blueprint.login_github')}}">
75+
<span class="text-lg fs-1 fab fa-github"></span>
76+
</a>
77+
78+
{% endif %}
79+
<!-- GitHub ends here -->
80+
6981
</p>
7082
</div>
7183
</div>

0 commit comments

Comments
 (0)