Fix warning

This commit is contained in:
nicolas.dorier 2020-03-26 22:56:30 +09:00
parent 0df5e7d7a3
commit a926a5eedf
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ namespace BTCPayServer.Security.APIKeys
{
string authHeader = Context.Request.Headers["Authorization"];
if (authHeader == null || !authHeader.StartsWith("Basic ")) return AuthenticateResult.NoResult();
if (authHeader == null || !authHeader.StartsWith("Basic ", StringComparison.OrdinalIgnoreCase)) return AuthenticateResult.NoResult();
var encodedUsernamePassword = authHeader.Split(' ', 2, StringSplitOptions.RemoveEmptyEntries)[1]?.Trim();
var decodedUsernamePassword =
Encoding.UTF8.GetString(Convert.FromBase64String(encodedUsernamePassword)).Split(':');

View File

@ -61,7 +61,7 @@
</div>
<div class="form-group">
<label asp-for="Email" class="control-label"></label>
<input type="email" asp-for="Email" class="form-control"></input>
<input type="email" asp-for="Email" class="form-control" />
<span asp-validation-for="Email" class="text-danger"></span>
</div>
<div class="form-group">