wellcomecollection / identity

Identity services for Wellcome Collection users
MIT License
0 stars 2 forks source link

Add an endpoint for resending verification emails #365

Closed alexwlchan closed 2 years ago

alexwlchan commented 2 years ago

For https://github.com/wellcomecollection/wellcomecollection.org/issues/8179

I think this will allow the identity web app to make a POST to the identity API and get a new verification email to be sent. There's a separate piece of work to actually call it from the identity web app.

alexwlchan commented 2 years ago

@jamieparkinson I think this is ready for another look.

alexwlchan commented 2 years ago

Test added.

I've renamed it to "send verification" email rather than "resend", because in some cases we've never sent an email in the first place.

I've also removed the scope; it turns out this is covered by the existing update:users scope.

alexwlchan commented 2 years ago

Ah, sorry, didn't realise Git was waiting for me to force push. 🤦‍♀️

This actually has the updated code now.