An invalid user requested a link but isn't getting one (non-confirmed users don't get password reset emails sent to them - they need to confirm their email first).User requested a link to reset their password.At the time of writing this, I'm sending notifications to a private channel in my Discord server for these three triggers: In the process of troubleshooting the problem, I decided that me knowing any time someone requested a password reset would be useful. We'd recently set up email confirmation logic in the system and between that and password resets, somewhere things weren't quite working. I don't expect to keep all of these triggers turned on, but at least initially I set these up because I was diagnosing some problems my users were reporting. That's what I'm doing in this case, since I'm firing these events from scaffolded ASP.NET Core Identity pages in my Web project.ĭomain events, by the way, are great because they provide a very simple way for you to decouple "when this happens" and "then this should happen." Learn more about domain events in my Pluralsight course or my podcast. However, you can also dispatch domain events on demand by using the DomainEventDispatcher directly (as an injected service). When used with entities and DDD, it takes care of sending events once each entity has been successfully saved to the database. It comes with a simple domain events implementation that uses Autofac and is built into the DbContext of that sample. My web app is based on (an older version of) my Clean Architecture solution template, available for free on GitHub. However, if you want to see a simple way to wire up domain events and Discord notifications in. Adding notifications for some of the event triggers I'm describing would not make sense for a very busy public-facing app. Keep that in mind as you read this article. The nature of devBetter is that it's a pretty small, close-knit group without too many active members. But I wanted to take that a step further and get notifications from my app itself. Now a particular channel gets updates based on GitHub activity, including commits and actions like deployments. As I was working on integrating GitHub actions with deployments to Azure, I discovered how to add Discord web hooks to this process. We meet weekly to answer questions, work through exercises together, and share progress, but we also have a very active Discord server where we do a lot of the same thing throughout the week. I'm continuing to have fun building out features for the devBetter site, which provides resources for my group coaching members.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |