Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding to payload in events that are fired #34

Open
Secular12 opened this issue May 31, 2019 · 0 comments
Open

Adding to payload in events that are fired #34

Secular12 opened this issue May 31, 2019 · 0 comments
Labels

Comments

@Secular12
Copy link

Secular12 commented May 31, 2019

My use case specifically is that I am using 'api-only' for Adonis, and that the emails being sent might have different end points for verifying the email depending on which front-end is making the request. I'd like to add the endpoint in the post method from the client to the server, and was hoping if there was a way to add some of this data through to the Persona methods that themselves could pass along to the events fired.

For instance, if forgotPassword is firing the 'forgot::password' event there could possibly be a parameter for eventsPayload or something? I'm aware that I could just use the Event.on() in the Controller, but was hoping to keep these things in the normal Adonis way.

If this cannot be done, or shouldn't be done out of principal, it's all cool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant