diff --git a/Fuyu.Backend.Core/Services/AccountService.cs b/Fuyu.Backend.Core/Services/AccountService.cs index b22efd7..a8e3d30 100644 --- a/Fuyu.Backend.Core/Services/AccountService.cs +++ b/Fuyu.Backend.Core/Services/AccountService.cs @@ -138,6 +138,12 @@ public static ERegisterStatus RegisterGame(string sessionId, string game, string { var account = CoreOrm.GetAccount(sessionId); + // TODO: refactor the account to only have one aid per game + if (account.Games.TryGetValue(game, out var aids) && aids.Count > 0) + { + return ERegisterStatus.AlreadyExists; + } + string address; switch (game)