From b2f4453b79a67d28dd5048ab3e7e84241663ab5a Mon Sep 17 00:00:00 2001 From: Loporrit <141286461+loporrit@users.noreply.github.com> Date: Fri, 8 Aug 2025 02:06:32 +0000 Subject: [PATCH] Add registerNewKeyV2 --- MareSynchronosAPI/Dto/Account/RegisterReplyV2Dto.cs | 11 +++++++++++ MareSynchronosAPI/Routes/MareAuth.cs | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 MareSynchronosAPI/Dto/Account/RegisterReplyV2Dto.cs diff --git a/MareSynchronosAPI/Dto/Account/RegisterReplyV2Dto.cs b/MareSynchronosAPI/Dto/Account/RegisterReplyV2Dto.cs new file mode 100644 index 0000000..59f7fe5 --- /dev/null +++ b/MareSynchronosAPI/Dto/Account/RegisterReplyV2Dto.cs @@ -0,0 +1,11 @@ +using MessagePack; + +namespace MareSynchronos.API.Dto.Account; + +[MessagePackObject(keyAsPropertyName: true)] +public record RegisterReplyV2Dto +{ + public bool Success { get; set; } = false; + public string ErrorMessage { get; set; } = string.Empty; + public string UID { get; set; } = string.Empty; +} \ No newline at end of file diff --git a/MareSynchronosAPI/Routes/MareAuth.cs b/MareSynchronosAPI/Routes/MareAuth.cs index 3bbb304..2bef31e 100644 --- a/MareSynchronosAPI/Routes/MareAuth.cs +++ b/MareSynchronosAPI/Routes/MareAuth.cs @@ -6,7 +6,9 @@ public class MareAuth public const string Auth_CreateIdent = "createWithIdent"; public const string Auth_CreateIdentV2 = "createWithIdentV2"; public const string Auth_Register = "registerNewKey"; + public const string Auth_RegisterV2 = "registerNewKeyV2"; public static Uri AuthFullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_CreateIdent); public static Uri AuthV2FullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_CreateIdentV2); public static Uri AuthRegisterFullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_Register); + public static Uri AuthRegisterV2FullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_RegisterV2); } \ No newline at end of file