[manual] Authenticate using a user_profile as request.user.

When this is deployed to staging, we need to run

./manage.py logout_all_users --realm=humbughq.com

When this is deployed to prod, we need to run

./manage.py logout_all_users

(imported from commit d6c6ea4b1c347f3d9122742db23c7b67767a7349)
This commit is contained in:
Tim Abbott
2013-03-29 12:39:53 -04:00
parent 712d931350
commit 5dbe8b4c17
8 changed files with 55 additions and 60 deletions

View File

@@ -52,6 +52,6 @@ class HomepageForm(forms.Form):
class LoggingSetPasswordForm(SetPasswordForm):
def save(self, commit=True):
do_change_password(self.user.userprofile, self.cleaned_data['new_password1'],
do_change_password(self.user, self.cleaned_data['new_password1'],
log=True, commit=commit)
return self.user