Giter Site home page Giter Site logo

ozceliksinan / aspnetcore-identity-template Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 13.48 MB

ASP.NET Core Identity is the membership system for building ASP.NET Core web applications, including membership, login, and user data.

C# 61.87% HTML 28.56% CSS 9.11% JavaScript 0.47%
asp-net-mvc csharp identity-management net-framework user-role-permission

aspnetcore-identity-template's Introduction

Simple Asp .Net Core Identity Template

About The Project

ASP.NET Core Identity is the membership system for building ASP.NET Core web applications, including membership, login, and user data. ASP.NET Core Identity allows you to add login features to your application and makes it easy to customize data about the logged in user. You can find additional information in the ASP.NET Core Documentation.

<!-- HTML Meta Tags -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="author" content="Sinan Özçelik">
<meta name="publisher" content="VS 2023">
<!-- Web Site Title -->
<title>Simple Asp .Net Core Identity Template</title>
<!-- Meta Open Graph -->
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Homepage" />
<meta property="og:url" content="Simple Asp .Net Core Identity Template" />
<meta property="og:site_name" content="Simple Asp .Net Core Identity Template" />

Features

  • CRUD Operations
  • Migration Operations
  • User Authentication
  • Register / Login Operations
  • Forgot Password
  • Roles Operations
  • SMTP E-Mail Sender

Build With

HTML5 CSS3 Bootstrap javascript C# MicrosoftSQLServer .Net Visual Studio

Installation

  1. Check the database connection on the appsetting.json file. Customize the database connection path here according to your own computer. By default the database name is PortfolioDb. You can enter SMTP settings from your own e-mail service.

    {
    "Logging": {
       "LogLevel": {
          "Default": "Information",
          "Microsoft.AspNetCore": "Warning"
       }
    },
    "ConnectionStrings": {
       "DefaultConnection": "Data Source=localhost\\SQLEXPRESS;Initial Catalog=IdentityDemoDb;Integrated Security=True; TrustServerCertificate=True; MultipleActiveResultSets=true"
    },
    "EmailSender": {
       "Host": "mail.alanadiniz.com",
       "Port": 587,
       "EnableSSL": false,
       "Username": "username",
       "Password": "password"
    },
    "AllowedHosts": "*"
    }
  2. Type the add-migration command via the Package Manager Console.

    add-migration DbCreateFirst
    
  3. Type the update-database command via the Package Manager Console.

    update-database
    
  4. You can use the information below to enter the admin panel. You can use the /Users/Index address path for the admin panel.

    // --- Identity User Information --- //
    private const string adminUser = "sinanozcelik";
    private const string adminPassword = "Sinan123.";
    private const string adminEmailAddress = "[email protected]";
    
    // Add new user
    await userManager.CreateAsync(user, adminPassword);
    // Add "admin" role to new user
    await userManager.AddToRoleAsync(user, "admin");

Contact Information

You can reach out to me using the following contact details:

Email

LinkedIn

I'm always open to development and collaboration. Feel free to reach out to me!

aspnetcore-identity-template's People

Contributors

ozceliksinan avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.