I would like to implement an access account using email (with verification) including a reset password but most of the samples are using SQL server. Is there other mechanism or component which is DB agnostic (I'm currently using Postgresql)? A sample project is very much appreciated. Thank you
Loading
Aman GuptaPosted Jul 2, 2024, 12:56 PM
Hi Sirch,
Below is a sample implementation using ASP.NET Core for the MVC framework. This example will show you how to set up email confirmation and password reset functionality.
Create a new ASP.NET Core MVC project:
Add necessary packages:
Setup PostgreSQL in
appsettings.json:Create the DataContext:
Configure Services in
Startup.cs:Set up Identity pages:
Add the Identity UI scaffold to your project:
Manikandan MurugesanPosted Jul 2, 2024, 11:57 AM
You can follow the link to work on setting up a sample project but it's on API and we can also do the same in MVC too: Building a Robust ASP.NET Core Web API with PostgreSQL (c-sharpcorner.com) https://www.c-sharpcorner.com/article/building-a-powerful-asp-net-core-web-api-with-postgresql/
Also, you can use explore more about Entity Framework to work on the other requirements