I am currently developing a MVC5 web application using ASP.NET Identity 2 for account management, the specific problem I'm having problems is automatically logged in the email confirmation after .
So the stream is as follows:
- User clicks Register link
- Included in email (username) / password, hits Registration
- An email is sent to the indicated address with the URL "please confirmaccount".
- The user clicks on the link, confirms the email address and automatically registers
Confirmation of the email action on the controllers is as follows:
[AllowAnonymous] public async Task<ActionResult> ConfirmEmail(string userId, string code) {
The strange thing is that I can either confirm the email, or sign the user, for some reason, if I do both ... it wonβt work. In particular, I get a TimeOutException on this line:
await SignInManager.SignInAsync(user, false, false);
which is very stunning since I know that db and application server are not a problem.
Am I wrong about this ...?
Thanks in advance!
source share