Univention Bugzilla – Bug 53227
Make Subject of self service mails configurable (via UCR)
Last modified: 2022-07-25 17:00:26 CEST
A customer wants to customize the reset mails of the self service. Body works fine but as far as I an see in the code the subject is hard coded. /usr/lib/python2.7/dist-packages/univention/management/console/modules/passwordreset/sending/send_email.py -> line 114 msg["Subject"] = "Password reset" It would be fine if this is also customizable via UCR like the body.
Same for one of our customers. They translated the body texts into German; therefore having German subjects would be really good to have.
The email subject of the self-service password reset email is now configurable via the UCR variable `umc/self-service/passwordreset/email/subject`. I also added a Test which sets a custom mail subject and validates that the mail actually contains that subject univention-self-service (5.0.2-2) dcad69feeda0 | Bug #53227 make self-service password reset header configuarble via UCR univention-management-console-module-appcenter (4.0.0-4) r53227 | Bug #35683: Update local files after extracting initial archive ucs-test (10.0.7-6) 9051c214501e | Bug #53227: [ucs-test] self-service add mail subject test into reset_via_email test 2e6d85436466 | Bug #53227: [ucs-test] migrate self-service test_reset_via_email to pytest 0b371e947e06 | Bug #53227: [ucs-test] rename self-service test_reset_via_email to .py
OK: subject configurable via UCR variable umc/self-service/passwordreset/email/subject OK: YAML
<https://errata.software-univention.de/#/?erratum=5.0x355>