MVC 5 with 2FA, email confirmation, password reset SMS,Two-Factor Authentication

Follow the tutorials: ASP.NET MVC 5 app with SMS and email Two-Factor Authentication Create a secure ASP.NET MVC 5 web app with log in, email confirmation and password reset This is the source code with debug helpers that goes with the above tutorials.The first time you build

C# (22.5 MB)
4.8 Star
27,413 times
Add to favorites
E-mail Twitter Digg Facebook
Sign in to ask a question

  • I think there is no db file is present in downloaded file. Can you please help me to find out the DB file?
    1 Posts | Last post April 23, 2019
    • Please send me the link for DB file
  • Session not persisted when browser is closed
    2 Posts | Last post April 10, 2019
    • This applies to certain browsers, including IE 11.
      Steps to reproduce the issue:
      1. Launch the app and register an account
      2. Using one of the browsers displaying the issue, sign in with the account you just registered, and access the /Manage page.
      3. Close the browser
      4. Restart the browser, and access the /Manage page.
      Expected result: the page loads correctly, since the session is still valid
      Actual result: the session is no longer valid, and the user is redirected to the login page
    • The above issue happens when `isPersistent` is `false` when calling the following function:
      `PasswordSignInAsync(string userName, string password, bool isPersistent, bool shouldLockout)`
      When that variable is `true`, users remain logged-in after they close their browser.
  • This does not run in VS2015 has 30 errors
    1 Posts | Last post December 03, 2018
    • On the first page, there is a typo: You must create a file in called AppSettingsSecrets.config.ignore which will contain the <appSettings> secrets for SendGrid, Twilio and 
      You must create a file in called?  A file WHERE?? I created the file with the example xml that seems like it should be in the web.config file? but followed instructions. 
      Builds and has 30 errors, Severity	Code	Description	Project	File	Line	Suppression State
      Error	CS0006	Metadata file 'C:\Users\bako\Downloads\MVC 5 with 2FA, email confirmation, password reset SMS,Two-Factor Authentication\packages\Antlr.\lib\Antlr3.Runtime.dll' could not be found	 
      and 29 similar errors. Open Nuget and it has Antlr. as the version? 
      Cannot make it run, can someone (Rick?) recheck and post a version that can be run? thanks
    1 Posts | Last post October 13, 2017
  • Tried and failed
    1 Posts | Last post July 24, 2017
    • I tried implementing this in my project but I end up with an error complaining about too many re-directs.  When it didn't work following the guide I copied the entire Accounts controller into my project.  same result
  • This does not work for me in VS 2015
    3 Posts | Last post July 04, 2016
    • Thank you for the great sample! It works very well in Visual Studio 2013 but for the life of me I cannot get it to work in Visual Studio 2015!
      I get no errors, I use the same settings in the AppSettingsSecrets.config.ignore file to no avail. What can the possible issue be?
    • The problem was that I did not set email confirmed to true, silly me!
    • Hi JamesRFryve
      Can you please help me with the sample code in VS2015.
  • How to implement identity and security with mysql as data base
    1 Posts | Last post February 28, 2016
    • Thank you for this post.
      I am trying to create MVC 5 with 2FA, email confirmation, password reset SMS, Two-Factor Authentication with MySQL as data base backend with out using entity frame work.
      But I am totally confused faced many issues.
      Can you please help me with this issue by the sample code.