escape URLs
This commit is contained in:
@@ -233,13 +233,13 @@ public partial class MareWizardModule
|
|||||||
services.DiscordVerifiedUsers[userid] = false;
|
services.DiscordVerifiedUsers[userid] = false;
|
||||||
_logger.LogInformation("Could not verify {userid} from lodestone {lodestone}, did not find authString: {authString}, status code was: {code}",
|
_logger.LogInformation("Could not verify {userid} from lodestone {lodestone}, did not find authString: {authString}, status code was: {code}",
|
||||||
userid, services.DiscordLodestoneMapping[userid], authString, response.StatusCode);
|
userid, services.DiscordLodestoneMapping[userid], authString, response.StatusCode);
|
||||||
await _botServices.LogToChannel($"<@{userid}> REGISTER VERIFY: Failed: No Authstring. ({url})").ConfigureAwait(false);
|
await _botServices.LogToChannel($"<@{userid}> REGISTER VERIFY: Failed: No Authstring. (<{url}>)").ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_logger.LogWarning("Could not verify {userid}, HttpStatusCode: {code}", userid, response.StatusCode);
|
_logger.LogWarning("Could not verify {userid}, HttpStatusCode: {code}", userid, response.StatusCode);
|
||||||
await _botServices.LogToChannel($"<@{userid}> REGISTER VERIFY: Failed: HttpStatusCode {response.StatusCode}. ({url})").ConfigureAwait(false);
|
await _botServices.LogToChannel($"<@{userid}> REGISTER VERIFY: Failed: HttpStatusCode {response.StatusCode}. (<{url}>)").ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -219,7 +219,7 @@ public partial class MareWizardModule
|
|||||||
{
|
{
|
||||||
services.DiscordVerifiedUsers[userid] = true;
|
services.DiscordVerifiedUsers[userid] = true;
|
||||||
_logger.LogInformation("Relink: Verified {userid} from lodestone {lodestone}", userid, services.DiscordRelinkLodestoneMapping[userid]);
|
_logger.LogInformation("Relink: Verified {userid} from lodestone {lodestone}", userid, services.DiscordRelinkLodestoneMapping[userid]);
|
||||||
await _botServices.LogToChannel($"<@{userid}> RELINK VERIFY: Success. ({url})").ConfigureAwait(false);
|
await _botServices.LogToChannel($"<@{userid}> RELINK VERIFY: Success.").ConfigureAwait(false);
|
||||||
services.DiscordRelinkLodestoneMapping.TryRemove(userid, out _);
|
services.DiscordRelinkLodestoneMapping.TryRemove(userid, out _);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -227,13 +227,13 @@ public partial class MareWizardModule
|
|||||||
services.DiscordVerifiedUsers[userid] = false;
|
services.DiscordVerifiedUsers[userid] = false;
|
||||||
_logger.LogInformation("Relink: Could not verify {userid} from lodestone {lodestone}, did not find authString: {authString}, status code was: {code}",
|
_logger.LogInformation("Relink: Could not verify {userid} from lodestone {lodestone}, did not find authString: {authString}, status code was: {code}",
|
||||||
userid, services.DiscordRelinkLodestoneMapping[userid], authString, response.StatusCode);
|
userid, services.DiscordRelinkLodestoneMapping[userid], authString, response.StatusCode);
|
||||||
await _botServices.LogToChannel($"<@{userid}> RELINK VERIFY: Failed: No Authstring. ({url})").ConfigureAwait(false);
|
await _botServices.LogToChannel($"<@{userid}> RELINK VERIFY: Failed: No Authstring. (<{url}>)").ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_logger.LogWarning("Could not verify {userid}, HttpStatusCode: {code}", userid, response.StatusCode);
|
_logger.LogWarning("Could not verify {userid}, HttpStatusCode: {code}", userid, response.StatusCode);
|
||||||
await _botServices.LogToChannel($"<@{userid}> RELINK VERIFY: Failed: HttpStatusCode {response.StatusCode}. ({url})").ConfigureAwait(false);
|
await _botServices.LogToChannel($"<@{userid}> RELINK VERIFY: Failed: HttpStatusCode {response.StatusCode}. (<{url}>)").ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user