Remove login URL | Fixes #3

This commit is contained in:
PV Tejas 2026-03-01 19:37:45 +05:30
parent 67953ac42e
commit 39243beff4
2 changed files with 1 additions and 3 deletions

View file

@ -8,8 +8,6 @@
{% if g.user %}
<li><span>{{ g.user['username'] }}</span>
<li><a href="{{ url_for('auth.logout') }}">Log Out</a>
{% else %}
<li><a href="{{ url_for('auth.login') }}">Log In</a>
{% endif %}
</ul>
</nav>

View file

@ -3,7 +3,7 @@ from flaskr.db import get_db
def test_index(client, auth):
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
auth.login()