Add registerNewKeyV2
This commit is contained in:
11
MareSynchronosAPI/Dto/Account/RegisterReplyV2Dto.cs
Normal file
11
MareSynchronosAPI/Dto/Account/RegisterReplyV2Dto.cs
Normal file
@@ -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;
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user