Bug 452491 requests a simple captcha be placed on the forgotten password page.
== Proposed fix ==
The captcha already existed on the registration page. It was quick work to refactor
the bits into a mixin class and let the forgotten password page use it. Sadly both
of those pages are done without using LaunchpadFormView, made instead with grout and
twine, so it took a little massaging to get things to work.
The test helper set_captcha_answer had to be made a little smarter to account for
form prefixes.
The reset password test needed some clean up too. There is a fair amount of drive by
stuff in here but it's easy to sort out, I hope.
I also changed the spacing on the error messages for this page and the registration
page to fix some overlap problems. Screenshots are at: http://people.canonical.com/~bac/captcha/
= Summary =
Bug 452491 requests a simple captcha be placed on the forgotten password page.
== Proposed fix ==
The captcha already existed on the registration page. It was quick work to refactor
the bits into a mixin class and let the forgotten password page use it. Sadly both
of those pages are done without using LaunchpadFormView, made instead with grout and
twine, so it took a little massaging to get things to work.
The test helper set_captcha_answer had to be made a little smarter to account for
form prefixes.
The reset password test needed some clean up too. There is a fair amount of drive by
stuff in here but it's easy to sort out, I hope.
I also changed the spacing on the error messages for this page and the registration people. canonical. com/~bac/ captcha/
page to fix some overlap problems. Screenshots are at:
http://
== Pre-implementation notes ==
None
== Implementation details ==
As above.
== Tests ==
bin/test -vvm lp.registry -t foaf -t xx-new- account- redirection- url.txt
== Demo and Q/A ==
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: /launchpad/ templates/ launchpad- login.pt /launchpad/ templates/ launchpad- forgottenpasswo rd.pt registry/ stories/ foaf/xx- reg-with- existing- email.txt registry/ stories/ foaf/xx- createaccount. txt /launchpad/ browser/ tests/registrat ion.py /launchpad/ webapp/ login.py testing/ registration. py /launchpad/ pagetests/ standalone/ xx-new- account- redirection- url.txt registry/ stories/ foaf/xx- resetpassword. txt
lib/canonical
lib/canonical
lib/lp/
lib/lp/
lib/canonical
lib/canonical
lib/lp/
lib/canonical
lib/lp/