[Refactoring] emailing can also be done in an actor! #801

Open
opened 4 years ago by igalic · 1 comments
igalic commented 4 years ago
Owner

one example is our password reset function: https://git.joinplu.me/Plume/Plume/src/branch/main/src/routes/session.rs#L160

the bulk of the function (in lines of code) handles email

that, like most mailing, should be handled separately.

again, an actor couldbe ideal here, and all we'd have to pass to it is the token

one example is our password reset function: https://git.joinplu.me/Plume/Plume/src/branch/main/src/routes/session.rs#L160 the bulk of the function (in lines of code) handles email that, like most mailing, should be handled separately. again, an actor couldbe ideal here, and all we'd have to pass to it is the token
igalic commented 4 years ago
Poster
Owner

I've created a basic example with riker and multi-type messages for how to replace Mailer: https://gist.github.com/igalic/119e0f9ab5c3c8f5a3d3f50a5e17ee3a

I've created a basic example with riker and multi-type messages for how to replace Mailer: https://gist.github.com/igalic/119e0f9ab5c3c8f5a3d3f50a5e17ee3a
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Plume/Plume#801
Loading…
There is no content yet.