Mercurial > p > roundup > code
diff roundup/cgi/actions.py @ 5340:ed6153d3ee6a
Fix password reset
Fix issue2550963: After refactoring one-time keys from the main
database we need to commit the password change in the password reset
mechanism separately. This used to be committed by the otk commit.
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Wed, 27 Jun 2018 12:01:28 +0200 |
| parents | 875605281b02 |
| children | 66a17c80e035 |
line wrap: on
line diff
--- a/roundup/cgi/actions.py Sat Jun 23 22:16:18 2018 -0400 +++ b/roundup/cgi/actions.py Wed Jun 27 12:01:28 2018 +0200 @@ -912,6 +912,8 @@ # clear the props from the otk database otks.destroy(otk) otks.commit() + # commit the password change + self.db.commit () except (ValueError, KeyError) as message: self.client.add_error_message(str(message)) return
