Skip to content
This repository has been archived by the owner on Nov 7, 2019. It is now read-only.

Commit

Permalink
Merge pull request #784 from liqd/rm-2019-07-account-redirect
Browse files Browse the repository at this point in the history
apps/account: Redirect unauthenticated users
  • Loading branch information
Magdalena Noffke committed Jul 11, 2019
2 parents 27bcfa2 + 23da23a commit 22c8228
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/account/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.messages.views import SuccessMessageMixin
from django.shortcuts import get_object_or_404
from django.utils.translation import ugettext_lazy as _
Expand All @@ -17,7 +18,8 @@ class AccountView(RedirectView):
# dashboard function overview.


class ProfileUpdateView(SuccessMessageMixin,
class ProfileUpdateView(LoginRequiredMixin,
SuccessMessageMixin,
generic.UpdateView):

model = User
Expand Down

0 comments on commit 22c8228

Please sign in to comment.