Skip to content

Commit

Permalink
Style fix
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
brosner committed Nov 18, 2014
1 parent 4972fa3 commit 09eb522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions account/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,8 @@ def change_password(self, form):
user = self.request.user
user.set_password(form.cleaned_data["password_new"])
user.save()
# Django >= 1.7 requires this call to stay logged in.
if hasattr(auth, 'update_session_auth_hash'):
# required on Django >= 1.7 to keep the user authenticated
if hasattr(auth, "update_session_auth_hash"):
auth.update_session_auth_hash(self.request, user)

def after_change_password(self):
Expand Down

0 comments on commit 09eb522

Please sign in to comment.