feat(auth): signupm, forgot passowrd, reset password all added

This commit is contained in:
2025-09-25 15:42:35 -05:00
parent a30fa8c9f4
commit 86dea6083e
34 changed files with 3698 additions and 49 deletions

View File

@@ -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);