tag:blogger.com,1999:blog-6082652835152798567.post1618542474390360862..comments2024-03-28T21:41:58.974-07:00Comments on Sql server, .net and c# video tutorial: Reset password in asp.net coreUnknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6082652835152798567.post-42203510335805177362020-08-01T14:37:05.842-07:002020-08-01T14:37:05.842-07:00Because the URL get encoded automatically by the b...Because the URL get encoded automatically by the browser , so it is different than the one of the user<br />Use this to create the resetPasswordLink:<br />string token = HttpUtility.UrlEncode(await userManager.GeneratePasswordResetTokenAsync(user));<br /><br />and use this before uncoded token in the ResetPasswordAsync method :<br /><br /> var decoded_token = HttpUtility.UrlDecode(token);<br /><br /><br />Anonymoushttps://www.blogger.com/profile/04898588033107982701noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-60710133712113842012020-07-09T01:30:07.595-07:002020-07-09T01:30:07.595-07:00why do I always get an "invalid token" e...why do I always get an "invalid token" error message, even though I haven't changed the token at all?Anonymoushttps://www.blogger.com/profile/17142729583207976533noreply@blogger.com