Univention Bugzilla – Bug 55028
Make Subject of self service mails configurable (via UCR)
Last modified: 2022-10-06 09:49:56 CEST
In the original Bug (Feature Request) I ment all subjects of the all self service mails. In the first bug only password reset mail subjects became configurable. Please make all mails of the self service configureable. A customer reported: verification_email_body email_change_notification_email_body email_body deregistration_notification_email_body Is hardcoded in english. Please verify that subject and body of all self service mails can be configured. +++ This bug was initially created as a clone of Bug #53227 +++ 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.
We should also add the new UCR variables to the self service manual.
The content is missing at https://docs.software-univention.de/manual/5.0/en/user-management/user-self-service.html
The changes raise an exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/univention/management/console/modules/passwordreset/__init__.py", line 892, in _deregister_account self._notify_about_account_deregistration(user.props.username, user.props.PasswordRecoveryEmail) File "/usr/lib/python3/dist-packages/univention/management/console/modules/passwordreset/__init__.py", line 913, in _notify_about_account_deregistration msg["Subject"] = self.ucr.get("umc/self-service/account-deregistration/email/subject", "Account deletion") AttributeError: 'Instance' object has no attribute 'ucr'
univention-self-service.yaml 908298f89cc5 | Bug #55028: yaml 491a90fabc2a | Bug #55028: univention-self-service e55ae2a88269 | Bug #55028: add ucr variables to customize mail subjects of the deregistration, account-verification, and email-change email univention-self-service (5.0.2-3) ca1489bfafd9 | fixup! Bug #55028: add ucr variables to customize mail subjects of the deregistration, account-verification, and email-change email e55ae2a88269 | Bug #55028: add ucr variables to customize mail subjects of the deregistration, account-verification, and email-change email
OK: subject of 3 other emails are now configurable OK: YAML
<https://errata.software-univention.de/#/?erratum=5.0x445>