Skip to content

Commit a7ad014

Browse files
committed
로그인 인증 분기 추가
1 parent c387dbc commit a7ad014

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

templates/mainfunc/main.html

+9-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,15 @@
2424
<header class="masthead" >
2525
<div class="container">
2626
<div style="margin-bottom: 100%">
27-
27+
<!-- 메인기능 -->
28+
{% if user.is_authenticated %}
29+
로그인ok
30+
31+
{%else%}
32+
로그인 후 이용해주세요
33+
<br/><br/><br/>
34+
<a class="btn btn-primary btn-xl text-uppercase" href="{% url 'accounts:login' %}">로그인</a>
35+
{%endif%}
2836
</div>
2937
</div>
3038
</header>

0 commit comments

Comments
 (0)