Better support for Plone 4.
Preparing release 0.3
Back to development: 0.4
remove trailing spaces
When change-password is used, self.context is plone.app.users.browser.personalpreferences.PasswordPanelAdapter
In this case, use the context's context to fetch portal_registry
If the user is changing the password via @@change-password, don't validate the current password.
Reason: PasswordStrength might have been installed after the user chose their current password.
If the current password gets validated, it can never be changed
Preparing release 0.3.1
Back to development: 0.3.2
remove password gen plugin
remove old code