I used the Template "Indiviual Login" When Create a Asp.Net MVC Webapi Project, Finding that E-mail confirmation cannot be removed. However I do not want this function in my practice. Must I override the Class "ApplicationUser"? But that method seems not
enough.
Please let us know: what version of VS, what type of project, and what type of authentication you used to create the project. Why do you think you can't remove the email confirmation? Without knowing exactly what code you are discussing it's hard to answer
you.
Thank you very much for answering me! The situation of mine is as follow:
I use Visual Studio Community 2017;
I build project of Asp.net MVC and WebApi;
I choose the authentication of "Individual user Accounts";
I finded e-mail confirmation module is contained in the system class "IdentityUser", and with this the database will automatically be built with e-mail account.
You can comment out the code in the AccountController.cs that sends the email confirmation request in the Register action. Users will then be registered without being sent a confirmation link email. (In fact, I think the code is commented out by default,
and you would have to uncomment it to enable email verification.)
None
0 Points
2 Posts
Hello, How Could I create Authorization in Asp.Net MVC5 WebApi without E-mail Confirmation?
Mar 07, 2018 02:03 PM|optimosu|LINK
I used the Template "Indiviual Login" When Create a Asp.Net MVC Webapi Project, Finding that E-mail confirmation cannot be removed. However I do not want this function in my practice. Must I override the Class "ApplicationUser"? But that method seems not enough.
Contributor
5921 Points
2450 Posts
Re: Hello, How Could I create Authorization in Asp.Net MVC5 WebApi without E-mail Confirmation?
Mar 07, 2018 09:28 PM|KathyW|LINK
Please let us know: what version of VS, what type of project, and what type of authentication you used to create the project. Why do you think you can't remove the email confirmation? Without knowing exactly what code you are discussing it's hard to answer you.
None
0 Points
2 Posts
Re: Hello, How Could I create Authorization in Asp.Net MVC5 WebApi without E-mail Confirmation?
Mar 08, 2018 02:27 AM|optimosu|LINK
Thank you very much for answering me! The situation of mine is as follow:
I use Visual Studio Community 2017;
I build project of Asp.net MVC and WebApi;
I choose the authentication of "Individual user Accounts";
I finded e-mail confirmation module is contained in the system class "IdentityUser", and with this the database will automatically be built with e-mail account.
Contributor
5921 Points
2450 Posts
Re: Hello, How Could I create Authorization in Asp.Net MVC5 WebApi without E-mail Confirmation?
Mar 08, 2018 05:23 AM|KathyW|LINK
You can comment out the code in the AccountController.cs that sends the email confirmation request in the Register action. Users will then be registered without being sent a confirmation link email. (In fact, I think the code is commented out by default, and you would have to uncomment it to enable email verification.)