Fixes: #4745
Just reused the relevant code of LoginForm._setup_password_field(). Hence I moved that code to PasswordHelpTextMixin. Hope that's ok. Now I am unsure if both help text in change password and login should be customized by the same password_reset_help_text.html, but for me it makes little sense to make the two different.
General
- Make sure you use semantic commit messages.
Examples:"fix(google): Fixed foobar bug","feat(accounts): Added foobar feature". - All Python code must formatted using Black, and clean from pep8 and isort issues.
- JavaScript code should adhere to StandardJS.
- If your changes are significant, please update
ChangeLog.rst. - If your change is substantial, feel free to add yourself to
AUTHORS.
Fixes: #4745
Just reused the relevant code of `LoginForm._setup_password_field()`. Hence I moved that code to `PasswordHelpTextMixin`. Hope that's ok. Now I am unsure if both help text in change password and login should be customized by the same `password_reset_help_text.html`, but for me it makes little sense to make the two different.
## General
- [x] Make sure you use [semantic commit messages](https://seesparkbox.com/foundry/semantic_commit_messages).
Examples: `"fix(google): Fixed foobar bug"`, `"feat(accounts): Added foobar feature"`.
- [x] All Python code must formatted using Black, and clean from pep8 and isort issues.
- [ ] JavaScript code should adhere to [StandardJS](https://standardjs.com).
- [x] If your changes are significant, please update `ChangeLog.rst`.
- [ ] If your change is substantial, feel free to add yourself to `AUTHORS`.