diff 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
line wrap: on
line diff
--- a/roundup/cgi/form_parser.py	Sat Apr 09 01:15:22 2016 -0400
+++ b/roundup/cgi/form_parser.py	Sat Apr 16 22:49:38 2016 -0400
@@ -386,7 +386,8 @@
                     raise FormError, self._('Password and confirmation text '
                         'do not match')
                 try:
-                    value = password.Password(value, config=self.db.config)
+                    value = password.Password(value, scheme = proptype.scheme,
+                                              config=self.db.config)
                 except hyperdb.HyperdbValueError, msg:
                     raise FormError, msg
 

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