Docs > User Areas >

Samples

Cofoundry.Samples.UserAreas

The user areas sample solution contains two projects:

AuthenticationSample

This 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.

View on GitHub

RegistrationAndVerificationSample

This sample is written using ASP.NET MVC and implements the following features:

  • Self-service user account registration
  • User accounts verified by email
  • Re-sending of 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

View on GitHub

Cofoundry.Samples.SPASite

As part of a larger sample application, this sample contains:

  • A custom "Member" user area
  • An API-driven interface
  • A member registration form
  • A member sign in form

View on GitHub