mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
feat: implement Turnstile verification for enhanced security during login and registration
refactor: remove unnecessary interfaces for services; change user key from UID to UUID
This commit is contained in:
@@ -9,5 +9,6 @@ namespace SharpbinV3.Server.DTOs
|
||||
public string? Email { get; set; }
|
||||
[StringLength(128, MinimumLength = 6)]
|
||||
public string? Password { get; set; }
|
||||
public string? Token { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,5 +15,6 @@ namespace SharpbinV3.Server.DTOs
|
||||
public string? Email { get; set; }
|
||||
|
||||
public string? DisplayName { get; set; }
|
||||
public string? Token { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SharpbinV3.Server.DTOs
|
||||
{
|
||||
public class TurnstileResponse
|
||||
{
|
||||
[JsonPropertyName("success")]
|
||||
public bool Success { get; set; }
|
||||
[JsonPropertyName("error-codes")]
|
||||
public string[]? ErrorCodes { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user