feat(auth): signupm, forgot passowrd, reset password all added
This commit is contained in:
@@ -154,6 +154,14 @@ app.Run(async (HttpContext context) =>
|
||||
}
|
||||
}
|
||||
|
||||
//Inject client IP into X-Forwarded-For
|
||||
var remoteIp = context.Connection.RemoteIpAddress?.ToString();
|
||||
if (!string.IsNullOrEmpty(remoteIp))
|
||||
{
|
||||
request.Headers.Remove("X-Forwarded-For");
|
||||
request.Headers.TryAddWithoutValidation("X-Forwarded-For", remoteIp);
|
||||
}
|
||||
|
||||
if (context.Request.ContentLength > 0 && request.Content == null)
|
||||
{
|
||||
request.Content = new StreamContent(context.Request.Body);
|
||||
|
||||
Reference in New Issue
Block a user