Skip to content
Snippets Groups Projects
Commit 0945f644 authored by Martin Mareš's avatar Martin Mareš
Browse files

Join: A better reaction to errors when joining by token in the URL

parent e976e042
No related branches found
No related tags found
No related merge requests found
......@@ -4,11 +4,12 @@
<h2>Join a new course{% if course %}: {{ course.name }}{% endif %}</h2>
{% if error %}
<p class=error>{{ error }}
{% endif %}
<p class=error>{{ error }}</p>
<p><a href='{{ url_for('index') }}' class=button>Go to main page</a></p>
{% else %}
<form method="POST" action="?">
{{ form.csrf_token }}
<input type=submit class=write value='Join'>
</form>
{% endif %}
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment