A short and sweet example of how to do NHibernate backed identity-provision with ASP.NET MVC 5.
You can read more about this code here. Please note that this code (as the licence says) comes with no warranty, a fact of particular relevance given that, in any real application, this would be security critical code. Please think carefully through your own security requirements.
- Update the connection string in Web.config to point at a database you have write access to.
- Run the setup-database.sql script to create the database and the user table.