https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44230 Bug ID: 44230 Summary: Allow overriding NotifyPasswordChange in POST /patrons/{patron_id}/password Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: REST API Assignee: koha-bugs@lists.koha-community.org Reporter: tomascohen@gmail.com QA Contact: tomascohen@gmail.com CC: tomascohen@gmail.com Target Milestone: --- POST /patrons/{patron_id}/password always follows the NotifyPasswordChange system preference: if it is enabled, the patron gets the PASSWORD_CHANGE notice, otherwise they do not. API consumers (e.g. identity management / account provisioning integrations doing bulk or initial password sets) need to decide per request whether the patron should be notified, independently of the system preference. This bug adds support for the x-koha-override header on this endpoint, following the pattern already used by POST /patrons (welcome_yes / welcome_no): * notify_yes: send the PASSWORD_CHANGE notice even if NotifyPasswordChange is disabled * notify_no: never send the notice for this request * no override: current behaviour (follow NotifyPasswordChange) If both are passed, notify_yes takes precedence (same as welcome_yes). The existing conditions still apply when sending: the password must actually change and the patron must have a notice email address. Koha::Patron->set_password gets an optional "notify" parameter to support this. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.