Bug 30646: Add welcome email support to SAML2
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 28 Apr 2022 15:12:47 +0000 (16:12 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 3 Oct 2022 17:02:39 +0000 (14:02 -0300)
commita951e6d131536d26f3e00677d9f526001146841c
tree3e5520231e35db788433acd3eb259111e0ecc1a2
parente9e10c5e72557f8a46fb224a979c01bf90e6935b
Bug 30646: Add welcome email support to SAML2

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

Test plan
1) Configure Shibboleth for authentication
2) Enable the welcome email by adding '<welcome>1</welcome>' to your
   shibboleth config block
3) Confirm you have autocreate enabled for your Shibboleth config
4) Attempt to login with an entirely new user to Koha using the shibboleth
   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_shibboleth.pm