Validate login request and refactor login handling

This commit is contained in:
Holden
2026-06-19 14:58:02 -05:00
parent 63730dbba0
commit 076fed09f2
10 changed files with 32 additions and 7 deletions

View File

@@ -1,12 +1,22 @@
using RecNet.Domain.Common;
using System.ComponentModel.DataAnnotations;
using RecNet.Domain.Common;
namespace API.Contracts.Profiles.Requests;
public class LoginRequest
{
[Required]
public required string AppVersion { get; set; }
[Required, StringLength(128, MinimumLength = 1)]
public required string DeviceId { get; set; }
[Required]
public required string PlatformAuthentication { get; set; }
[Required, StringLength(50, MinimumLength = 1)]
public required string PlatformId { get; set; }
[EnumDataType(typeof(PlatformType))]
public PlatformType PlatformType { get; set; }
}