chore: formatting

This commit is contained in:
Timothy Schenk 2023-11-20 19:56:14 +01:00
parent 927ec4e5a1
commit ec797a5885
6 changed files with 24 additions and 15 deletions

View file

@ -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;

View file

@ -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)
{

View file

@ -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;

View file

@ -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;