Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
f8ec669e
Commit
f8ec669e
authored
Aug 28, 2014
by
Chris Reffett
Browse files
Put registration behind the login wall
parent
9588e7af
Changes
3
Hide whitespace changes
Inline
Side-by-side
go/go/templates/about.html
View file @
f8ec669e
...
...
@@ -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 %}
go/go/templates/login.html
View file @
f8ec669e
...
...
@@ -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
s
ervice
.
</p>
<p>
You must be registered to use this
service. Please log in in order to
s
ubmit a registration request
.
</p>
{% endblock %}
go/go/views.py
View file @
f8ec669e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment