mirror of
https://github.com/yawaflua/yaflay.ru.git
synced 2025-12-09 20:19:32 +02:00
try to fix using string[]
This commit is contained in:
@@ -44,7 +44,7 @@ namespace yaflay.ru.Новая_папка
|
||||
}
|
||||
string responseBody = await message.Content.ReadAsStringAsync();
|
||||
JsonNode response = JsonNode.Parse(responseBody);
|
||||
if (response["user"] != null || Startup.ownerId.FirstOrDefault(k => k.Equals(response["user"]?["id"].ToString())) == null)
|
||||
if (response["user"] != null || Startup.ownerId.FirstOrDefault(k => k == (response["user"]?["id"].ToString())) == null)
|
||||
{
|
||||
Redirects redirects = new()
|
||||
{
|
||||
@@ -73,7 +73,7 @@ namespace yaflay.ru.Новая_папка
|
||||
}
|
||||
string responseBody = await message.Content.ReadAsStringAsync();
|
||||
JsonNode response = JsonNode.Parse(responseBody);
|
||||
if (response["user"] != null || Startup.ownerId.FirstOrDefault(k => k.Equals(response["user"]?["id"].ToString())) == null )
|
||||
if (response["user"] != null || Startup.ownerId.FirstOrDefault(k => k == (response["user"]?["id"].ToString())) == null )
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
@if (Request.Cookies["melon"] != null)
|
||||
{
|
||||
|
||||
if (Startup.ownerId.FirstOrDefault(k => k.Equals(Request.Cookies["cable"])) == null)
|
||||
if (Startup.ownerId.FirstOrDefault(k => k == (Request.Cookies["cable"])) == null)
|
||||
{
|
||||
<h1 align="center">Вы не авторизованы! Сасни хуйца, олух</h1>
|
||||
isAllowed = false;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
@{
|
||||
ViewData["Title"] = "Authorize";
|
||||
string authorizationUrl = $"https://discord.com/api/oauth2/authorize?client_id={Startup.clientId}&response_type=code&redirect_uri={Startup.redirectUrl}&scope=identify";
|
||||
<p style="display:none;">Data: @Startup.clientId @Startup.redirectUrl @String.Join(",", Startup.ownerId) @Model.code</p>
|
||||
<p style="display:none;">Data: @Startup.clientId @Startup.redirectUrl [@String.Join(",", Startup.ownerId)] @Model.code</p>
|
||||
if (Model.code == null)
|
||||
{
|
||||
if (Request.Cookies["melon"]?.ToString() == null)
|
||||
|
||||
Reference in New Issue
Block a user