Asp.NET Identity 2 giving “Invalid Token” error

前端 未结 21 1989
情话喂你
情话喂你 2020-11-27 03:04

I\'m using Asp.Net-Identity-2 and I\'m trying to verify email verification code using the below method. But I am getting an \"Invalid Token\"

21条回答
  •  野性不改
    2020-11-27 03:29

    Hit this issue with asp.net core and after a lot of digging I realised I'd turned this option on in Startup:

    services.Configure(options =>
    {
        options.LowercaseQueryStrings = true;
    });
    

    This of course invalidated the token that was in the query string.

提交回复
热议问题