mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Fix typos
This commit is contained in:
@@ -368,7 +368,7 @@ namespace BTCPayServer.Controllers
|
|||||||
|
|
||||||
if (!user.TwoFactorEnabled)
|
if (!user.TwoFactorEnabled)
|
||||||
{
|
{
|
||||||
throw new ApplicationException($"Unexpected error occured disabling 2FA for user with ID '{user.Id}'.");
|
throw new ApplicationException($"Unexpected error occurred disabling 2FA for user with ID '{user.Id}'.");
|
||||||
}
|
}
|
||||||
|
|
||||||
return View(nameof(Disable2fa));
|
return View(nameof(Disable2fa));
|
||||||
@@ -387,7 +387,7 @@ namespace BTCPayServer.Controllers
|
|||||||
var disable2faResult = await _userManager.SetTwoFactorEnabledAsync(user, false);
|
var disable2faResult = await _userManager.SetTwoFactorEnabledAsync(user, false);
|
||||||
if (!disable2faResult.Succeeded)
|
if (!disable2faResult.Succeeded)
|
||||||
{
|
{
|
||||||
throw new ApplicationException($"Unexpected error occured disabling 2FA for user with ID '{user.Id}'.");
|
throw new ApplicationException($"Unexpected error occurred disabling 2FA for user with ID '{user.Id}'.");
|
||||||
}
|
}
|
||||||
|
|
||||||
_logger.LogInformation("User with ID {UserId} has disabled 2fa.", user.Id);
|
_logger.LogInformation("User with ID {UserId} has disabled 2fa.", user.Id);
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ namespace BTCPayServer.Controllers
|
|||||||
{
|
{
|
||||||
subsctractFeesValue = bool.Parse(substractFees);
|
subsctractFeesValue = bool.Parse(substractFees);
|
||||||
}
|
}
|
||||||
catch { throw new FormatException("Invalid value for substract fees"); }
|
catch { throw new FormatException("Invalid value for subtract fees"); }
|
||||||
}
|
}
|
||||||
if (command == "test")
|
if (command == "test")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -516,7 +516,7 @@ namespace BTCPayServer.Controllers
|
|||||||
var pairingResult = await _TokenRepository.PairWithStoreAsync(pairingCode, store.Id);
|
var pairingResult = await _TokenRepository.PairWithStoreAsync(pairingCode, store.Id);
|
||||||
if (pairingResult == PairingResult.Complete || pairingResult == PairingResult.Partial)
|
if (pairingResult == PairingResult.Complete || pairingResult == PairingResult.Partial)
|
||||||
{
|
{
|
||||||
StatusMessage = "Pairing is successfull";
|
StatusMessage = "Pairing is successful";
|
||||||
if (pairingResult == PairingResult.Partial)
|
if (pairingResult == PairingResult.Partial)
|
||||||
StatusMessage = "Server initiated pairing code: " + pairingCode;
|
StatusMessage = "Server initiated pairing code: " + pairingCode;
|
||||||
return RedirectToAction(nameof(ListTokens), new
|
return RedirectToAction(nameof(ListTokens), new
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace BTCPayServer
|
|||||||
/// there is functionality to allow adding or removing more than a single
|
/// there is functionality to allow adding or removing more than a single
|
||||||
/// value at once.
|
/// value at once.
|
||||||
///
|
///
|
||||||
/// The MultiValueDictionary can also be viewed as a IReadOnlyDictionary<TKey,IReadOnlyCollection<TValue>t>
|
/// The MultiValueDictionary can also be viewed as an IReadOnlyDictionary<TKey,IReadOnlyCollection<TValue>t>
|
||||||
/// where the <see cref="IReadOnlyCollection{TValue}" /> is abstracted from the view of the programmer.
|
/// where the <see cref="IReadOnlyCollection{TValue}" /> is abstracted from the view of the programmer.
|
||||||
///
|
///
|
||||||
/// For a read-only MultiValueDictionary.
|
/// For a read-only MultiValueDictionary.
|
||||||
|
|||||||
@@ -279,7 +279,7 @@ namespace BTCPayServer.Payments.Bitcoin
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Take the most recent (bitcoin node would not forward a conflict without a successfull RBF)
|
// Take the most recent (bitcoin node would not forward a conflict without a successful RBF)
|
||||||
_Winner = Transactions
|
_Winner = Transactions
|
||||||
.OrderByDescending(t => t.Value.Timestamp)
|
.OrderByDescending(t => t.Value.Timestamp)
|
||||||
.First()
|
.First()
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Substract fees from amount</label>
|
<label>Subtract fees from amount</label>
|
||||||
<input id="substract-checkbox" name="SubstractFees" class="form-check" type="checkbox" />
|
<input id="substract-checkbox" name="SubstractFees" class="form-check" type="checkbox" />
|
||||||
</div>
|
</div>
|
||||||
<button id="confirm-button" name="command" type="submit" class="btn btn-success">Confirm</button>
|
<button id="confirm-button" name="command" type="submit" class="btn btn-success">Confirm</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user