Skip to content

Commit

Permalink
fix user reset password
Browse files Browse the repository at this point in the history
  • Loading branch information
fanjinfei committed Jul 24, 2017
1 parent a0abd8a commit b5ddf6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ckan/controllers/user.py
Expand Up @@ -533,6 +533,7 @@ def perform_reset(self, id):
context['reset_password'] = True
user_state = user_dict['state']
new_password = self._get_form_password()
user_dict['password'] = new_password
username = request.params.get('name')
if (username is not None and username != ''):
user_dict['name'] = username
Expand Down

0 comments on commit b5ddf6d

Please sign in to comment.