diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2011-07-04 10:59:01 +0200 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2011-07-04 10:59:01 +0200 |
commit | e55ed9273902c8e759dd06d2325924be1068e239 (patch) | |
tree | 4421b4c42ae850d5d609a3f8bfabc278189be0bc /rhodecode/model/user.py | |
parent | 171b15cfef15e46c6223f825d1e604bcecd82bf1 (diff) |
fixes #223 improve password reset form
--HG--
branch : beta
Diffstat (limited to 'rhodecode/model/user.py')
-rw-r--r-- | rhodecode/model/user.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rhodecode/model/user.py b/rhodecode/model/user.py index c3393315..1e3bb7f6 100644 --- a/rhodecode/model/user.py +++ b/rhodecode/model/user.py @@ -213,6 +213,10 @@ class UserModel(BaseModel): self.sa.rollback() raise + def reset_password_link(self, data): + from rhodecode.lib.celerylib import tasks, run_task + run_task(tasks.send_password_link, data['email']) + def reset_password(self, data): from rhodecode.lib.celerylib import tasks, run_task run_task(tasks.reset_user_password, data['email']) |