Skip to content

Commit

Permalink
Require login for /settings page
Browse files Browse the repository at this point in the history
Avoid an internal server error in case the page is opened by someone who
is not logged in
  • Loading branch information
HSZemi committed Mar 29, 2022
1 parent 9b37d7b commit 83e57d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mapsapp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def registerpage(request):
return render(request, 'mapsapp/register.html', context=context)


@login_required
def settings(request):
context = {'messages': []}
if request.method == 'POST':
Expand Down

0 comments on commit 83e57d7

Please sign in to comment.