Return the created profileid/sessionid when registering an account

This commit is contained in:
Chomp
2025-07-17 16:30:12 +01:00
parent 6c4de1f5bd
commit ca5c2b8066
2 changed files with 4 additions and 4 deletions
@@ -106,13 +106,13 @@ public class LauncherController(
/// </summary>
/// <param name="info"></param>
/// <returns></returns>
public async Task<string> Register(RegisterData info)
public async Task<MongoId> Register(RegisterData info)
{
foreach (var (_, profile) in saveServer.GetProfiles())
{
if (info.Username == profile.ProfileInfo?.Username)
{
return "";
return MongoId.Empty();
}
}