Skip to content

Commit

Permalink
Merge pull request getredash#1371 from vitorbaptista/feature/show_adm…
Browse files Browse the repository at this point in the history
…ins_the_password_reset_link

Change: display user's password reset link to the admin when mail server disabled
  • Loading branch information
arikfr authored Nov 20, 2016
2 parents e09fac2 + 8c0ae57 commit ac60e07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handlers/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ def post(self, user_id):
user = models.User.get_by_id_and_org(user_id, self.current_org)
reset_link = send_password_reset_email(user)

return {
'reset_link': reset_link,
}


class UserResource(BaseResource):
def get(self, user_id):
Expand Down

0 comments on commit ac60e07

Please sign in to comment.