comparison roundup/cgi/form_parser.py @ 5053:9792b18e0b19

issue 2550880: Ability to choose password store scheme and SSHA support. Discussion on list is tending in favor of this patch. Embedded test works, my manual test with a SSHA password assigned to a user allowed the user to log in. Ran the test suite and the tests that were not skipped passed.
author John Rouillard <rouilj@ieee.org>
date Sat, 16 Apr 2016 22:49:38 -0400
parents 86a270b5b993
children 47ab150b7325
comparison
equal deleted inserted replaced
5051:b69c5e763295 5053:9792b18e0b19
384 'value for the %s property') % propname 384 'value for the %s property') % propname
385 if value != confirm.value: 385 if value != confirm.value:
386 raise FormError, self._('Password and confirmation text ' 386 raise FormError, self._('Password and confirmation text '
387 'do not match') 387 'do not match')
388 try: 388 try:
389 value = password.Password(value, config=self.db.config) 389 value = password.Password(value, scheme = proptype.scheme,
390 config=self.db.config)
390 except hyperdb.HyperdbValueError, msg: 391 except hyperdb.HyperdbValueError, msg:
391 raise FormError, msg 392 raise FormError, msg
392 393
393 elif isinstance(proptype, hyperdb.Multilink): 394 elif isinstance(proptype, hyperdb.Multilink):
394 # convert input to list of ids 395 # convert input to list of ids

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