Skip to content

Commit ac60e07

Browse files
authored
Merge pull request getredash#1371 from vitorbaptista/feature/show_admins_the_password_reset_link
Change: display user's password reset link to the admin when mail server disabled
2 parents e09fac2 + 8c0ae57 commit ac60e07

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

handlers/users.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ def post(self, user_id):
7474
user = models.User.get_by_id_and_org(user_id, self.current_org)
7575
reset_link = send_password_reset_email(user)
7676

77+
return {
78+
'reset_link': reset_link,
79+
}
80+
7781

7882
class UserResource(BaseResource):
7983
def get(self, user_id):

0 commit comments

Comments
 (0)