##// END OF EJS Templates
login: fix incorrect CSRF rejection of "Reset Your Password" form (Issue #350)...
login: fix incorrect CSRF rejection of "Reset Your Password" form (Issue #350) htmlfill would remove the CSRF token from the form when substituting the query parameters, causing password reset to break. By default, htmlfill will clear all input fields that doesn't have a new "default" value provided. It could be fixed by setting force_defaults to False - see http://www.formencode.org/en/1.2-branch/modules/htmlfill.html . It could also be fixed by providing the CSRF token in the defaults to be substituted in the form. Instead, refactor password_reset_confirmation to have more explicitly safe handling of query parameters. Replace htmlfill with the usual template variables. The URLs are generated in kallithea/model/user.py send_reset_password_email() and should only contain email, timestamp (integer as digit string) and a hex token from get_reset_password_token() .
Mads Kiilerich -
r8010:8b471817 stable
Show More
Name Size Modified Last Commit Author
/ kallithea / templates / search
search.html Loading ...
search_commit.html Loading ...
search_content.html Loading ...
search_path.html Loading ...
search_repository.html Loading ...