Added customized AppendLine() for StringBuilder
This commit is contained in:
@@ -95,6 +95,7 @@ namespace AMWD.Common.AspNetCore.BasicAuthentication
|
||||
if (!string.IsNullOrWhiteSpace(Realm))
|
||||
context.HttpContext.Response.Headers["WWW-Authenticate"] += $" realm=\"{Realm.Replace("\"", "")}\"";
|
||||
|
||||
context.HttpContext.Response.StatusCode = 401;
|
||||
context.Result = new UnauthorizedResult();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user