Remove login URL | Fixes #3
This commit is contained in:
parent
67953ac42e
commit
39243beff4
2 changed files with 1 additions and 3 deletions
|
|
@ -8,8 +8,6 @@
|
||||||
{% if g.user %}
|
{% if g.user %}
|
||||||
<li><span>{{ g.user['username'] }}</span>
|
<li><span>{{ g.user['username'] }}</span>
|
||||||
<li><a href="{{ url_for('auth.logout') }}">Log Out</a>
|
<li><a href="{{ url_for('auth.logout') }}">Log Out</a>
|
||||||
{% else %}
|
|
||||||
<li><a href="{{ url_for('auth.login') }}">Log In</a>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ from flaskr.db import get_db
|
||||||
|
|
||||||
def test_index(client, auth):
|
def test_index(client, auth):
|
||||||
response = client.get('/')
|
response = client.get('/')
|
||||||
assert b"Log In" in response.data
|
assert b"Log In" not in response.data
|
||||||
assert b"Register" not in response.data
|
assert b"Register" not in response.data
|
||||||
|
|
||||||
auth.login()
|
auth.login()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue