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