Commit f8ec669e authored by Chris Reffett's avatar Chris Reffett
Browse files

Put registration behind the login wall

parent 9588e7af
......@@ -17,8 +17,17 @@ ULife groups, and student organizations. Access is moderated by SRCT
administrators.
</p>
{% if user.is_authenticated %}
<p>
You can <a href="{% url 'signup' %}">sign up</a> for use.
<br/><br/>
</p>
{% else %}
<p>
Please <a href="{% url 'go_login' %}">log in</a> in order to submit an access
request.
<br/><br/>
</p>
{% endif %}
{% endblock %}
......@@ -43,7 +43,7 @@ action="{% url 'django.contrib.auth.views.login' %}">
</form>
<p>You must be <a href="{% url 'signup' %}">registered</a> to use this
service.</p>
<p>You must be registered to use this service. Please log in in order to
submit a registration request.</p>
{% endblock %}
......@@ -179,6 +179,7 @@ def delete(request, short):
raise PermissionDenied()
@login_required
def signup(request):
"""
This view presents the user with a registration form. You can register
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment