Closed melanierogan closed 2 years ago
How hard would it be to roll together the other mutator methods?
updatePatronEmail
updatePassword
I think
markPatronEmailVerified
is sufficiently different in behaviour that it can/should stay separate
I think password pretty quick and patron email i'll just have to have another look at but can't immediately see why not. Please hold - more code deletion to come 🎵
I've got updatePassword
rolled in, updateEmail
is a little more tricky as it GETs record number, then PUTs an updated email and adds a note.
This can take options like barcode and varFieldTags to change patron details via PUT.
Based on https://github.com/wellcomecollection/wellcomecollection.org/issues/8073 and suggestion from @jamieparkinson here https://github.com/wellcomecollection/wellcomecollection.org/issues/8073#issuecomment-1156277878 and overall related to https://github.com/wellcomecollection/wellcomecollection.org/issues/7896