mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
fixing indent, fix checkout page opacity
This commit is contained in:
@@ -18,7 +18,7 @@ namespace BTCPayServer
|
||||
{
|
||||
public static string WithTrailingSlash(this string str)
|
||||
{
|
||||
if (str.EndsWith("/"))
|
||||
if(str.EndsWith("/"))
|
||||
return str;
|
||||
return str + "/";
|
||||
}
|
||||
@@ -44,7 +44,7 @@ namespace BTCPayServer
|
||||
|
||||
public static BitIdentity GetBitIdentity(this Controller controller, bool throws = true)
|
||||
{
|
||||
if (!(controller.User.Identity is BitIdentity))
|
||||
if(!(controller.User.Identity is BitIdentity))
|
||||
return throws ? throw new UnauthorizedAccessException("no-bitid") : (BitIdentity)null;
|
||||
return (BitIdentity)controller.User.Identity;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user