comparison 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
comparison
equal deleted inserted replaced
5339:5887b826faf4 5340:ed6153d3ee6a
910 # set the password 910 # set the password
911 cl.set(uid, password=password.Password(newpw, config=self.db.config)) 911 cl.set(uid, password=password.Password(newpw, config=self.db.config))
912 # clear the props from the otk database 912 # clear the props from the otk database
913 otks.destroy(otk) 913 otks.destroy(otk)
914 otks.commit() 914 otks.commit()
915 # commit the password change
916 self.db.commit ()
915 except (ValueError, KeyError) as message: 917 except (ValueError, KeyError) as message:
916 self.client.add_error_message(str(message)) 918 self.client.add_error_message(str(message))
917 return 919 return
918 920
919 # user info 921 # user info

Roundup Issue Tracker: http://roundup-tracker.org/