Skip to content

A ready-to-use .NET login/signup template with basic user info storage and Gmail SMTP email support. Simply download and configure your email credentials to start handling user authentication quickly. Lightweight, easy to customize, and ideal for small projects or learning purposes.

Notifications You must be signed in to change notification settings

kishore-144/DbCredentials-Dotnet-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DotNetAuthTemplate

A ready-to-use .NET login and signup template with basic user information storage and Gmail SMTP email support. Ideal for small projects, demos, or as a starting point to learn authentication in .NET applications.

.NET SMTP License

Features

  • User registration and login functionality
  • Basic user information storage (can be extended to any database)
  • Email notifications via Gmail SMTP
  • Lightweight and easy to customize
  • Quick setup—just configure your email credentials
  • ACID-compliant transaction processing ensures data integrity and reliability

Prerequisites

  • .NET 6/7 SDK (or compatible version)
  • Gmail account with App Password enabled (for sending emails)

Installation

  1. Clone the repository:
git clone https://github.com/kishore-144/DbCredentials-Dotnet-Template.git
cd DotNetAuthTemplate
  1. Open the project in Visual Studio or VS Code.

  2. Update your Gmail credentials in the SMTP configuration inside the controller:

var smtpClient = new SmtpClient("smtp.gmail.com")
{
    Port = 587,
    Credentials = new NetworkCredential("<your email>", "<your email app password>"),
    EnableSsl = true,
};
  1. Run the project:
dotnet run

Usage

  • Access the login and signup pages from your browser
  • Register a new user and login using the credentials
  • Email notifications will be sent using the configured Gmail account

Customization

  • Extend the user model to include more fields
  • Connect to a database of your choice for persistent storage
  • Modify email templates or add additional notifications

License

This project is open-source. Feel free to use, modify, and distribute for personal or commercial purposes.

About

A ready-to-use .NET login/signup template with basic user info storage and Gmail SMTP email support. Simply download and configure your email credentials to start handling user authentication quickly. Lightweight, easy to customize, and ideal for small projects or learning purposes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages