diff --git a/roundup/cgi/actions.py b/roundup/cgi/actions.py
index 41f5979467dee8b5dceed43bdc0cd8298dd08fcf..d48fb595eb75514bd47c74a4bd8abbbfefec8466 100755 (executable)
--- a/roundup/cgi/actions.py
+++ b/roundup/cgi/actions.py
if isinstance(prop, hyperdb.Multilink):
value = value.split(':')
elif isinstance(prop, hyperdb.Password):
- value = password.Password(value)
+ value = password.Password(value, config=self.db.config)
elif isinstance(prop, hyperdb.Interval):
value = date.Interval(value)
elif isinstance(prop, hyperdb.Date):
# XXX we need to make the "default" page be able to display errors!
try:
# set the password
- cl.set(uid, password=password.Password(newpw))
+ cl.set(uid, password=password.Password(newpw, config=self.db.config))
# clear the props from the otk database
otks.destroy(otk)
self.db.commit()
stored = db.user.get(userid, 'password')
if givenpw == stored:
if db.config.WEB_MIGRATE_PASSWORDS and stored.needs_migration():
- db.user.set(userid, password=password.Password(givenpw))
+ newpw = password.Password(givenpw, config=db.config)
+ db.user.set(userid, password=newpw)
db.commit()
return 1
if not givenpw and not stored: