Skip to content

Commit

Permalink
Fixing forgot password links by blanking out old passwords.
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelclay committed Mar 11, 2012
1 parent 2b65f36 commit 546f22a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/profile/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ def send_forgot_password_email(self, email=None):
msg.attach_alternative(html, "text/html")
msg.send(fail_silently=True)

user.set_password('')
user.save()

logging.user(self.user, "~BB~FM~SBSending email for forgotten password: %s" % self.user.email)

def autologin_url(self, next=None):
Expand Down

0 comments on commit 546f22a

Please sign in to comment.