Univention Bugzilla – Bug 56933
Incorrect Error Messaging for Missing `univentionPasswordSelfServiceEmail` Field
Last modified: 2023-12-20 19:10:31 CET
# Bug Report: Incorrect Error Messaging for Missing `univentionPasswordSelfServiceEmail` Field ### Current Behavior When testing the "Forgot Password" self-service and entering the username of a valid user, the system confirms that the token has been sent. However, no email is received and the logs show that the process dies when there is no entry in the `univentionPasswordSelfServiceEmail` field. ### Expected Behavior The system should not terminate the process when the `univentionPasswordSelfServiceEmail` field is empty. Instead, it should provide a more informative error message to the user. ### Steps to Reproduce 1. Test the "Forgot Password" self-service. 2. Enter the username of a valid user. 3. Confirm the sending of the token via email. 4. Observe that no email is received and the process dies when there is no entry in the `univentionPasswordSelfServiceEmail` field. ### Additional Information This bug report is based on the observation that the process dies when the `univentionPasswordSelfServiceEmail` field is empty. Improving the error messaging will enhance the user experience and help in troubleshooting. This issue was observed on UCS: 5.0-3 errata803 with the self-service running on the backup. The backup also hosts an OpenXChange-System responsible for email sending. The expected behavior was that the email would be sent to the primary email address. The logs show that the process dies with the module=passwordreset. The error was found to be that the `univentionPasswordSelfServiceEmail` field was not set for the user, only the `mail` and `mailPrimaryAddress` fields were set.