mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
Fix warning
This commit is contained in:
parent
0df5e7d7a3
commit
a926a5eedf
@ -74,7 +74,7 @@ namespace BTCPayServer.Security.APIKeys
|
|||||||
{
|
{
|
||||||
string authHeader = Context.Request.Headers["Authorization"];
|
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 encodedUsernamePassword = authHeader.Split(' ', 2, StringSplitOptions.RemoveEmptyEntries)[1]?.Trim();
|
||||||
var decodedUsernamePassword =
|
var decodedUsernamePassword =
|
||||||
Encoding.UTF8.GetString(Convert.FromBase64String(encodedUsernamePassword)).Split(':');
|
Encoding.UTF8.GetString(Convert.FromBase64String(encodedUsernamePassword)).Split(':');
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Email" class="control-label"></label>
|
<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>
|
<span asp-validation-for="Email" class="text-danger"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
Loading…
Reference in New Issue
Block a user