Skip to content

Commit 83e57d7

Browse files
committed
Require login for /settings page
Avoid an internal server error in case the page is opened by someone who is not logged in
1 parent 9b37d7b commit 83e57d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mapsapp/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ def registerpage(request):
148148
return render(request, 'mapsapp/register.html', context=context)
149149

150150

151+
@login_required
151152
def settings(request):
152153
context = {'messages': []}
153154
if request.method == 'POST':

0 commit comments

Comments
 (0)