added authentication
This commit is contained in:
6
CalibreWebCompanion/library/templates/ifelselogin.html
Normal file
6
CalibreWebCompanion/library/templates/ifelselogin.html
Normal file
@ -0,0 +1,6 @@
|
||||
{% if user.is_authenticated %}
|
||||
|
||||
{% else %}
|
||||
<h1>You don't have permission to view this.</h1>
|
||||
<li><a href="{% url 'login'%}?next={{request.path}}">Login</a></li>
|
||||
{% endif %}
|
Reference in New Issue
Block a user