Giter VIP home page Giter VIP logo

cofoundry.samples.userareas's Introduction

Cofoundry.Samples.UserAreas

The user areas sample solution contains two projects:

  • AuthenticationSample: A standard credential-based authentication flow with account recovery and account management features.
  • RegistrationAndVerificationSample: A self-service user registration and account verification flow.

AuthenticationSample

The authentication sample is written using ASP.NET Razor Pages and implements the following features:

  • Credential-based authentication (email addresses as usernames)
  • Sign in/sign out
  • Forcing a password change at first sign in
  • Account recovery (AKA "forgot password")
  • Custom mail templates
  • Account management (update, password change, delete)
  • Using ICofoundryHelper in views to query the current user

In this sample users are added via the admin panel.

To get started:

  1. Create a database named 'Cofoundry.Samples.UserAreas.AuthenticationSample' and check the Cofoundry connection string in the appsettings.json file is correct for your SQL Server instance
  2. Run the website and navigate to "/admin", which will display the setup screen
  3. Enter an application name and setup your user account. Submit the form to complete the site setup.

Adding a User

  1. Sign into the admin panel
  2. Navigate to Settings > Member Users to create a user
  3. Adding a user will send an email notification to the user with a temporary password.
  4. The test site is configured to write out debug emails into the /App_Data/Emails folder, open the email file to find the temporary password for your user account.
  5. Follow the link on the homepage or navigate to "/members/" to sign in.

RegistrationAndVerificationSample

The registration and verification sample is written using ASP.NET MVC and implements the following features:

  • Self-service user account registration
  • User accounts verified by email
  • Re-sending verification emails
  • Custom user verification mail template
  • Credential-based authentication (separate username and email address)
  • Sign in/sign out
  • Using ICofoundryHelper in views to query the current user

To get started:

  1. Create a database named 'Cofoundry.Samples.UserAreas.RegistrationAndVerificationSample' and check the Cofoundry connection string in the appsettings.json file is correct for you SQL Server instance
  2. Run the website and navigate to "/admin", which will display the setup screen
  3. Enter an application name and setup your user account. Submit the form to complete the site setup.

Registering a User

  1. From the homepage navigate to Members > Register here or go directly to "/members/registration".
  2. Fill in the and submit the form.
  3. Adding a user will send an email notification to the user with a verification link.
  4. The test site is configured to write out debug emails into the /App_Data/Emails folder, open the email file to find the verification link.
  5. Copy the link into your browser, navigating to the link will verify the account.
  6. Follow the "sign in" link to sign in to your new account.

cofoundry.samples.userareas's People

Contributors

heyjoel avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

adenia-media

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.