Main page does not require login. Fixed login redirection
This commit is contained in:
@@ -46,10 +46,16 @@
|
||||
{% endfor%}
|
||||
</div>
|
||||
<div class="user-card">
|
||||
{% if current_user.is_authenticated %}
|
||||
<img src="{{url_for('static', filename=current_user.name + '.png')}}">
|
||||
{% endif %}
|
||||
<div class="user-info">
|
||||
{% if current_user.is_authenticated %}
|
||||
<span>{{current_user.name}}</span>
|
||||
<div class="rect-button" onclick="location.href='/logout';" style="background-color: #EE7500;">LOGOUT</div>
|
||||
{% else %}
|
||||
<div class="rect-button" onclick="location.href='/login';" style="background-color: #EE7500;">LOGIN</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user