Guest User

Guest User

  • Tech Writer
  • 611
  • 127.8k

Reset Link on mail .net core.

Jul 3 2020 12:46 PM
string message = $"Hello {FName.FirstName}! We have recieved your Reset Password request. Please click the link to Reset Password. URL : {Request.HttpRequestUri.Scheme}://{Request.RequestUri.Host}:{(Request.RequestUri.IsDefaultPort ? string.Empty : Request.RequestUri.Port.ToString())}{"/api/Login/ResetPassword?uid="}{ user.UserId}";
 
I have to create this code send reset password link on mail using .net core 3.1.It's not working .
 
I have this error-
'HttpRequest' does not contain a definition for 'HttpRequestUri' and no accessible extension method 'HttpRequestUri' accepting a first argument of type 'HttpRequest' could be found (are you missing a using directive or an assembly reference?) .
 
Please solve this it's most important for me. 

Answers (2)