Bug 30646: Add welcome email support to LDAP
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 28 Apr 2022 14:56:55 +0000 (15:56 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 3 Oct 2022 17:02:39 +0000 (14:02 -0300)
commite9e10c5e72557f8a46fb224a979c01bf90e6935b
treea57fd575119de8cdbc98684c2fdbb9627edc56dd
parent63119a86860174e668dc68fe559eba8d195e1b02
Bug 30646: Add welcome email support to LDAP

This patch adds the ability to enable the welcome email notice for new
users added via the LDAP replicate option.

Test plan
1) Configure LDAP for authentication
2) Enable the welcome email by adding '<welcome>1</welcome>' to your
   ldap config block
3) Confirm you have replicate enabled for your LDAP config
4) Attempt to login with an entirely new user to Koha using the LDAP
   connection (with a user who has a valid email address mapped to Koha
   borrower fields)
5) Confirm the email is sent by looking at the notices for the new user.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Auth_with_ldap.pm