chore: formatting
This commit is contained in:
parent
927ec4e5a1
commit
ec797a5885
6 changed files with 24 additions and 15 deletions
|
@ -25,7 +25,7 @@ trim_trailing_whitespace = true
|
|||
insert_final_newline = true
|
||||
|
||||
[*.cs]
|
||||
file_header_template = // Copyright (c) 2023 Timothy Schenk. Subject to the GNU AGPL Version 3 License.
|
||||
file_header_template = // Copyright (c) 2023 Timothy Schenk.Subject to the GNU AGPL Version 3 License.
|
||||
indent_size = 4
|
||||
dotnet_sort_system_directives_first = true
|
||||
dotnet_diagnostic.MA0007.severity = none
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// // Copyright (c) 2023 Timothy Schenk.Subject to the GNU AGPL Version 3 License.
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using NetCoreServer;
|
||||
using Server.DB;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// // Copyright (c) 2023 Timothy Schenk.Subject to the GNU AGPL Version 3 License.
|
||||
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using Konscious.Security.Cryptography;
|
||||
|
@ -31,7 +33,8 @@ public class LoginHandler : IPacketHandler<LoginInfoPacket>
|
|||
{
|
||||
LoginResponseReason loginResponseReason;
|
||||
_logger.LoginData(packet.Username, packet.Password);
|
||||
var account = await _wonderkingContext.Accounts.FirstOrDefaultAsync(a => a.Username == packet.Username).ConfigureAwait(false);
|
||||
var account = await _wonderkingContext.Accounts.FirstOrDefaultAsync(a => a.Username == packet.Username)
|
||||
.ConfigureAwait(false);
|
||||
|
||||
if (account == null)
|
||||
{
|
||||
|
|
|
@ -82,25 +82,25 @@
|
|||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="NetCoreServer" Version="8.0.3" />
|
||||
<PackageReference Include="NetCoreServer" Version="8.0.3"/>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3"/>
|
||||
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.0-rc.2"/>
|
||||
<PackageReference Include="Npgsql.OpenTelemetry" Version="7.0.6" />
|
||||
<PackageReference Include="Npgsql.OpenTelemetry" Version="7.0.6"/>
|
||||
<PackageReference Include="Nullable.Extended.Analyzer" Version="1.10.4539">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="OpenTelemetry" Version="1.7.0-alpha.1" />
|
||||
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.7.0-alpha.1" />
|
||||
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.7.0-alpha.1" />
|
||||
<PackageReference Include="OpenTelemetry.Exporter.Zipkin" Version="1.7.0-alpha.1" />
|
||||
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.7.0-alpha.1" />
|
||||
<PackageReference Include="OpenTelemetry.Instrumentation.EntityFrameworkCore" Version="1.0.0-beta.8" />
|
||||
<PackageReference Include="OpenTelemetry.Instrumentation.Http" Version="1.6.0-beta.3" />
|
||||
<PackageReference Include="OpenTelemetry.Instrumentation.MassTransit" Version="1.0.0-beta.3" />
|
||||
<PackageReference Include="OpenTelemetry.Instrumentation.Runtime" Version="1.5.1" />
|
||||
<PackageReference Include="OpenTelemetry.PersistentStorage.FileSystem" Version="1.0.0" />
|
||||
<PackageReference Include="OpenTelemetry.ResourceDetectors.Container" Version="1.0.0-beta.4" />
|
||||
<PackageReference Include="OpenTelemetry" Version="1.7.0-alpha.1"/>
|
||||
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.7.0-alpha.1"/>
|
||||
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.7.0-alpha.1"/>
|
||||
<PackageReference Include="OpenTelemetry.Exporter.Zipkin" Version="1.7.0-alpha.1"/>
|
||||
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.7.0-alpha.1"/>
|
||||
<PackageReference Include="OpenTelemetry.Instrumentation.EntityFrameworkCore" Version="1.0.0-beta.8"/>
|
||||
<PackageReference Include="OpenTelemetry.Instrumentation.Http" Version="1.6.0-beta.3"/>
|
||||
<PackageReference Include="OpenTelemetry.Instrumentation.MassTransit" Version="1.0.0-beta.3"/>
|
||||
<PackageReference Include="OpenTelemetry.Instrumentation.Runtime" Version="1.5.1"/>
|
||||
<PackageReference Include="OpenTelemetry.PersistentStorage.FileSystem" Version="1.0.0"/>
|
||||
<PackageReference Include="OpenTelemetry.ResourceDetectors.Container" Version="1.0.0-beta.4"/>
|
||||
<PackageReference Include="Serilog.Extensions.Logging.File" Version="3.0.0"/>
|
||||
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0"/>
|
||||
</ItemGroup>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// // Copyright (c) 2023 Timothy Schenk.Subject to the GNU AGPL Version 3 License.
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Wonderking.Game.Data.Item;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// // Copyright (c) 2023 Timothy Schenk.Subject to the GNU AGPL Version 3 License.
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Wonderking.Game.Data.Item;
|
||||
|
|
Loading…
Reference in a new issue