detect logged in users on the home page (mostly debugging social auth)
This commit is contained in:
parent
28c6241553
commit
603c29c8b4
2 changed files with 5 additions and 1 deletions
|
@ -15,8 +15,12 @@
|
|||
<div class="row">
|
||||
<div class="span8 offset2">
|
||||
<div class="hero-unit">
|
||||
{% if request.user.is_authenticated %}
|
||||
<p>Welcome back, {{ request.user.username }}</p>
|
||||
{% else %}
|
||||
<a class="btn btn-large btn-primary" href="{% url login %}">Login with
|
||||
GitHub</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue