Skip to content

Commit

Permalink
[#548] Fix broken password reset and add FIXMEs
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Mar 5, 2013
1 parent 8d37013 commit 2cdd1c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckan/controllers/user.py
Expand Up @@ -416,6 +416,9 @@ def request_reset(self):
return render('user/request_reset.html')

def perform_reset(self, id):
# FIXME 403 error for invalid key is a non helpful page
# FIXME We should reset the reset key when it is used to prevent
# reuse of the url
context = {'model': model, 'session': model.Session,
'user': c.user,
'keep_sensitive_data': True}
Expand Down Expand Up @@ -473,6 +476,7 @@ def _get_form_password(self):
raise ValueError(_('The passwords you entered'
' do not match.'))
return password1
raise ValueError(_('You must provide a password'))

def followers(self, id=None):
context = {'for_view': True}
Expand Down

0 comments on commit 2cdd1c5

Please sign in to comment.