Bug 23538 added the ability to have the library receive an email when a patron registers. Some outside systems, e.g. Aspen, use the patron API to register new patrons. AutoEmailNewUser is handled in the API and EmailPatronRegistrations should be too.
Created attachment 192150 [details] [review] Bug 41733: Unit tests
Created attachment 192151 [details] [review] Bug 41733: Honor EmailPatronRegistrations in the API This patch adds new overrides opac_reg_yes and opac_reg_no to the patrons api and will send a notice to the library when a patron is registered via the API if the pref is active and the NO override is not sent, or the YES override is sent To test: 1 - Apply patches 2 - yarn build 3 - restart_all 4 - run unit tests