volatiletech / authboss

The boss of http auth.
MIT License
3.79k stars 204 forks source link

How to do a retry confirmation email ? #339

Closed akhilmhdh closed 1 year ago

akhilmhdh commented 2 years ago

Hey there,

I was playing around with authboss as a whole. Confirmation module works as expected. But out of curiosity wanted to try how to do a retry for confirmation mail to be sent again. Like scenarios in which user may have missed it etc.

I found out that code its added as register event effect. But read in documentation that i can be triggered with register hook.

Can someone please help me on, whether this is something achievable. I saw the function for it to start the flow but can't seem to get an idea on how to execute it.

aarondl commented 1 year ago

All the code is there and broken apart in such a way to make it easy to call the part you're interested in. I don't have enough context about your use case, but basically just call one of the methods: StartConfirmation, StartConfirmationWeb or SendConfirmEmail