Mercurial > p > roundup > code
comparison roundup/admin.py @ 4486:693c75d56ebe
Add new config-option 'password_pbkdf2_default_rounds'...
...in 'main' section to configure the default parameter for new
password generation. Set this to a higher value on faster systems
which want more security. Thanks to Eli Collins for implementing this
(see issue2550688).
This now passes a config object (default None in which case we fall back
to hard-coded parameters) into the password generation routine. This way
we can add further parameters for password generation in the future.
Also added a small regression test for this new feature.
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Fri, 15 Apr 2011 08:09:59 +0000 |
| parents | a0be2bc223f5 |
| children | 6e9b9743de89 |
comparison
equal
deleted
inserted
replaced
| 4485:95aace124a8e | 4486:693c75d56ebe |
|---|---|
| 509 | 509 |
| 510 # re-write the backend select file | 510 # re-write the backend select file |
| 511 init.write_select_db(tracker_home, backend, tracker.config.DATABASE) | 511 init.write_select_db(tracker_home, backend, tracker.config.DATABASE) |
| 512 | 512 |
| 513 # GO | 513 # GO |
| 514 tracker.init(password.Password(adminpw)) | 514 tracker.init(password.Password(adminpw, config=tracker.config)) |
| 515 | 515 |
| 516 return 0 | 516 return 0 |
| 517 | 517 |
| 518 | 518 |
| 519 def do_get(self, args): | 519 def do_get(self, args): |
